Re: Error subclassing datetime.date and pickling

2007-08-02 Thread kyosohma
On Aug 2, 11:02 am, Mike Rooney <[EMAIL PROTECTED]> wrote: > Hi everyone, this is my first post to this list. I am trying to create a > subclass of datetime.date and pickle it, but I get errors on loading it > back. I have created a VERY simple demo of this: > > import datetime > > class MyDate(dat

Error subclassing datetime.date and pickling

2007-08-02 Thread Mike Rooney
Hi everyone, this is my first post to this list. I am trying to create a subclass of datetime.date and pickle it, but I get errors on loading it back. I have created a VERY simple demo of this: import datetime class MyDate(datetime.date): """ This should be pickleable. >>> md =