Re: instance attributes not inherited?



Dan Sommers wrote:
[snip]

How does it help that Parent.__init__ gets called? That call simply
would create a temporary Parent object, right? I don't see how it
should help (even though it *does* indeed work).


The __init__ method is an *initializer*, *not* a constructor.  By the
time __init__ runs, the object has already been constructed; __init__
just does extra initialization.

Regards,
Dan


Right. Thanks for the clarification. :)

--
(remove zeez if demunging email address)
.