[Pythonmac-SIG] Extending datetime

Ronald Oussoren oussoren at cistron.nl
Wed Mar 17 10:39:43 EST 2004


On 17-mrt-04, at 16:26, Joel Bender wrote:

> I'm having trouble extending the datetime class.  My suspicion is that 
> datetime is not a real class, but something else.  And this probably 
> isn't a Mac specific thing.

This is not a Mac specific issue.

The datetime types are immutable, you should therefore override __new__ 
instead of __init__.

Ronald
--
X|support bv            http://www.xsupport.nl/
T:  +31 610271479       F:  +31 204416173




More information about the Pythonmac-SIG mailing list