How to use "__new__"?

could ildg could.net at gmail.com
Tue Mar 29 20:02:54 EST 2005


As there is already __init__, why need a __new__?
What can __new__ give us while __init__ can't?
In what situations we should use __new__?
And in what situations we must use __new__?
Can __new__ take the place of __init__?
Thanks.



More information about the Python-list mailing list