Overloading ctor doesn't work?

Kent Johnson 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!
> 
>   http://sourceforge.net/tracker/index.php?func=detail&aid=720908&group_id=5470&atid=105470
> 
> 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.

Kent

> 
> (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 mailing list