Overloading ctor doesn't work?
kent3737 at yahoo.com
Fri Jan 21 06:03:11 EST 2005
Nick Craig-Wood wrote:
> Martin Häcker <dwt23 at hotmail.com> wrote:
>> Now I thought, just overide the ctor of datetime so that year, month and
>> day are static and everything should work as far as I need it.
>> That is, it could work - though I seem to be unable to overide the ctor. :(
> Its a bug!
> However its been fixed in a recent Python 2.3.
My example was developed in Python 2.4. The problem was the immutability of datetime.
> (I was bitten by the same thing which used to fail but now works after
> an upgrade of python 2.3!)
More information about the Python-list