Oct. 23, 2001
7:58 p.m.
Alas, this is one of the things that don't work yet. To set and get
Oh, well; I need to come up with a different example for subclassing a built-in type, then. Thanks! <puts on thinking cap>
You can use a similar example but not override __getitem__ / __setitem__; instead, add some new methods (e.g. merge() -- like update() but the existing key wins). --Guido van Rossum (home page: http://www.python.org/~guido/)