Wednesday, November 12, 2008
PyCon 2009 Plans
I'll be there. I submitted a talk proposal for a further refined version of my class decorators talk. Since that talk people have actually started to write useful class decorators that weren't just replacements for metaclass hacks. The total ordering decorator, for instance, modifies a class that implements the __lt__ comparison to have ALL the comparison operators. For the talk I'll also work up a decorator to replace UserDict: define __getitem__ and the deco will add __contains__, etc. I always thought mixins were a hack, frankly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment