On Nov 15, 10:25 am, Steve Howell <showel...@yahoo.com> wrote: > [see original post...] > I am most > interested in the specific mechanism for changing the __getitem__ > method for a subclass on a dictionary. Thanks in advance!
Sorry for replying to myself, but I just realized that the last statement in my original post was a little imprecise. I am more precisely looking for a way to change the behavior of foo ['bar'] (side effects and possibly return value) where "foo" is an instance of a class that subclasses "dict," and where "foo" is not created by me. The original post gives more context and example code that does not work as I expect/desire. -- http://mail.python.org/mailman/listinfo/python-list