Overloading ctor doesn't work?

Martin Häcker dwt23 at hotmail.com
Thu Jan 20 22:43:05 CET 2005


> Ah, right. The light turns on...
> 
> datetime is immutable so overriding the constructor doesn't change the 
> constructed object. You have to override __new__ instead.
> http://www.python.org/2.2.1/descrintro.html#__new__

Ahhh! Thanks a bunch, now this makes things much clearer.

Thanks again!
cu Martin

-- 
Reach me at spamfaenger (at) gmx (dot) net



More information about the Python-list mailing list