Spencer Pearson wrote:
I was recently trying to implement a dict-like object which would do some fancy stuff when it was modified, and found that overriding the__setitem__ method of an instance did not act the way I expected.
The __magic__ methods are only looked up on the class, never the instance. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list