Re: instance attributes not inherited?
- From: "John M. Gabriele" <john_sips_teaz@xxxxxxxxxx>
- Date: Mon, 16 Jan 2006 01:13:38 -0500
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) .
- References:
- instance attributes not inherited?
- From: John M. Gabriele
- Re: instance attributes not inherited?
- From: David Hirschfield
- Re: instance attributes not inherited?
- From: John M. Gabriele
- Re: instance attributes not inherited?
- From: Dan Sommers
- instance attributes not inherited?
- Prev by Date: Re: Display of JPEG images from Python
- Next by Date: Re: instance attributes not inherited?
- Previous by thread: Re: instance attributes not inherited?
- Next by thread: Re: instance attributes not inherited?
- Index(es):