Re: Can't subclass datetime.datetime?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Steven Bethard [EMAIL PROTECTED] wrote: 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? I assume this is true because

Re: Can't subclass datetime.datetime?

2005-02-14 Thread Kent Johnson
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