Ted Leung on the air: Open Source, Java, Python, and ...
The second inaccuracy that Will pointed out is that we're actually not subclassing dicts in PyBlosxom, we're just overriding the __getattr__
and __setattr__
methods on classes. We had a dicussion about subclassing dicts, but this only works in Python 2.2, so we ended up not doing that. The result is that the classes in question behave like dicts (you can do things like config['num_comments']
) and the "dict lookups" can do lazy evaluation, which is the thing that I really liked.


Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are: <a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk