Why does __init__ not get called?

Rob Conner rtconner at gmail.com
Wed Aug 10 15:38:51 EDT 2005


I'm out of my league too. I don't know enough about __new__ and
__init__.
I just went another route and did a wrapper for datetime, and didn't
extend it.
Thanks for the effort.

By chance... does anyone know, if I wrote a class, and just wanted to
override __new__ just for the fun of it. What would __new__ look like
so that it behaves exactly the same as it does any other time.




More information about the Python-list mailing list