Can't subclass datetime.datetime?

Kent Johnson kent37 at tds.net
Mon Feb 14 15:39:37 EST 2005


Grant Edwards wrote:
> Is it true that a datetime object can convert itself into a
> string, but not the other way around?  IOW, there's no simple
> way to take the output from str(d) and turn it back into d?

According to this thread, a patch has been checked in that adds strptime() to datetime. So there is 
something to look forward to...
http://tinyurl.com/4fbkb

Kent



More information about the Python-list mailing list