How to use "__new__"?

could ildg could.net at gmail.com
Wed Mar 30 03:02:54 CEST 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