instance attributes not inherited?
John M. Gabriele
john_sips_teaz at yahooz.com
Mon Jan 16 01:13:38 EST 2006
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)
More information about the Python-list
mailing list