Ok, maybe this is a stupid question, but why can't I make a subclass of
datetime.date and override the __init__ method?
---
from datetime import date
class A(date):
def __init__(self, a, b, c, d):
print a, b, c, d
date.__init__(self, 2006, 12, 11)
d = A(1, 2, 3, 4)
---
$ p
Wow, you guys are fast.
Thanks Georg and Fredrik!!
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > Ok, maybe this is a stupid question, but why can't I make a subclass of
> > datetime.date and override the __init__ method?
>
> __init__ controls initialization of an already constructed objec