Re: pickling class instances with __slots__

2005-10-28 Thread Alex Martelli
Alex <[EMAIL PROTECTED]> wrote: ... > I have a series of new classes with child-parent relationship and each > has unique __slots__. They don't have __dict__ . I need to be able to > pickle and unpickle them. As far as I could understand, I need to > provide __getstate__ and __setstate__ metho

pickling class instances with __slots__

2005-10-28 Thread Alex
I would greatly appreciate an advice on the following matter that was very much discussed circa 2002 but in all this discussion I could not find the final answer with a code example. Neither I can find it in Python documentation. I have a series of new classes with child-parent relationship and e