sub-classing the types in the builtin module datetime

Colin J. Williams cjw at
Wed Aug 15 18:04:26 CEST 2007

I wish to sub-class (if that's the right word) datetime and to use a 
different signature for the constructor.

The second part has gone smoothly, but it is difficult to access the 
type's methods from the sub-class instance.

I'm beginning to wonder whether it might might be simpler to write my 
own Date class.

Does anyone have any comments please?

Colin W.

More information about the Python-list mailing list