, Sergey Simonenko.
--
http://mail.python.org/mailman/listinfo/python-list
( self.base ):
def __init__( self, base ):
self.base = base
Something like that... and then I would do this:
foo = MyDerived( MyBase() )
Note I'm using Python 3.1 on Windows. Thanks in advance.
--
Kind regards, Sergey Simonenko.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I subclass builtin 'dict' in my application and experience some problems
with it.
The whole issue is that I should redefine 'setdefault' and 'update'
methods after redefining '__setitem__' or/and '__delitem__',
otherwise 'update' and 'setdefault' ignore redefined '__setitem__' and use