Overloading ctor doesn't work?

Nick Craig-Wood nick at craig-wood.com
Fri Jan 21 11:30:02 CET 2005


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. :(
> 
>  Why is that?

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.

(I was bitten by the same thing which used to fail but now works after
an upgrade of python 2.3!)
-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list