[Python-Dev] How to suppress instance __dict__?
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Tue Mar 25 00:29:28 CET 2003
> From: Michael Hudson [mailto:mwh at python.net]
> "Delaney, Timothy C (Timothy)" <tdelaney at avaya.com> writes:
> [__init__ vs. __new__]
> > Because most of the time we want to work with fully-constructed
> > objects. You can't use overridden methods in a constructor - only
> > from an initialiser.
> What makes you say that?
> Doing too much C++ lately?
Unfortunately, yes :(
How about this then ... using __init__ is simpler in most cases ;)
More information about the Python-list