sub-classing datetime

Colin J. Williams cjw at ncf.ca
Thu Feb 7 10:13:24 EST 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