support. Inheriting from dict likely means you have to redefine a bunch of functions to raise Exceptions saying that they're unsupported.
Hmm. . .
We've got the NotImplemented singleton already to let special methods say "I thought I might be able to handle this, but I can't".
Maybe "__op__ = NotImplemented" should clear the associated slot. It would also make it easier to inherit from list and handle slices in __getitem__ by writing "__getslice__ = NotImplemented" instead of overriding __getslice__ to delegate to __getitem__.
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list