[Pythonmac-SIG] Extending datetime

Skip Montanaro skip at pobox.com
Wed Mar 17 10:39:54 EST 2004


    >>> class X(datetime):
    ...     def __init__(self):
    ...         datetime.__init__(self,1,2,3)
    ...

A little birdie is whispering in my ear that you need to use __new__ somehow
when subclassing new-style classes, but it's not saying why or how.  You
might want to check the docs.

Skip



More information about the Pythonmac-SIG mailing list