How to subclass datetime?

Jane Austine janeaustine50 at hotmail.com
Sun Apr 13 07:39:42 EDT 2003


Running Python 2.3a2 on win XP.

I'm interested in the new datetime module and I want to subclass
date/datetime class to modify the behaviour. However, simply
inheritting the classes(like "class mydate(date):" ) didn't work.

Should I resort to delegation?

Thanks in advance.

Jane




More information about the Python-list mailing list