initializing mutable class attributes
Diez B. Roggisch
deetsNOSPAM at web.de
Wed Sep 1 12:16:21 EDT 2004
Dan Perl wrote:
> My mistake. You're right, and it's all because of the inheritance from
> 'object', which probably defines a default, empty, __init__. I haven't
> made a habit of subclassing from 'object' yet and I see that I'll have to
> do
> that. Thanks.
You can safely remove the object as ancestor - it works with old-style
classes, too.
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list