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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to