[Tutor] Modify inherited methods
Steven D'Aprano
steve at pearwood.info
Wed Apr 28 13:04:30 CEST 2010
On Wed, 28 Apr 2010 04:53:06 pm Walter Wefft wrote:
> Steven D'Aprano wrote:
> > And for guru-level mastery, replace to call to dict.__init__ with
> > ...
>
> nothing at all, because dict.__init__ doesn't do anything.
[...]
> Behaviour is different depending on whether you call the superclass
> __init__ or not.
>
> ?
Fascinating... it seems that you are correct. Just goes to show, you can
be programming in Python for well over a decade and still learn
something new.
Believe it or not, I did test the behaviour before posting, but
obviously my tests were faulty!
--
Steven D'Aprano
More information about the Tutor
mailing list