Author cjw296
Recipients cjw296
Date 2008-11-26.17:08:00
SpamBayes Score 5.63949e-07
Marked as misclassified No
Message-id <1227719282.37.0.890069433685.issue4442@psf.upfronthosting.co.za>
In-reply-to
Content
>>> from datetime import datetime
>>> class defaultdatetime(datetime):
...   defaults=(2001,1,1)
...   def __init__(self,*args):
...     if not args:
...       args = self.defaults
...     datetime.__init__(self,*args)
...
>>> defaultdatetime()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function takes at least 3 arguments (0 given)
History
Date User Action Args
2008-11-26 17:08:02cjw296setrecipients: + cjw296
2008-11-26 17:08:02cjw296setmessageid: <1227719282.37.0.890069433685.issue4442@psf.upfronthosting.co.za>
2008-11-26 17:08:01cjw296linkissue4442 messages
2008-11-26 17:08:00cjw296create