sub-classing datetime

Colin J. Williams cjw at
Thu Feb 7 16:13:24 CET 2013

I'm just making the transition from 2 to 3 for one module.

With Python 2.7, I had the benefit of mx datetime, but this is not yet 
available for Python 3.2.

I find that the 3.2 datetime is not subclassable, for reasons that were 
known some years back.

It would help if there was a note in the docs listing the builtin 
classes which are not subclassable.

I am retreating to the use of a function.

Any other suggestions?

Colin W.

More information about the Python-list mailing list