Re: [Python-Dev] Bug in Pickle protocol involving __setstate__

2008-03-18 Thread Thomas Wouters
On Mon, Mar 3, 2008 at 8:00 AM, Greg Kochanski <[EMAIL PROTECTED]> wrote: > If we have a hierarchy of classes, and we use > __getstate__/__setstate__, the wrong version > of __setstate__ gets called. > > Possibly, this is a documentation problem, but here goes: > No, it's a typo error :) > > Ta

[Python-Dev] Bug in Pickle protocol involving __setstate__

2008-03-18 Thread Greg Kochanski
If we have a hierarchy of classes, and we use __getstate__/__setstate__, the wrong version of __setstate__ gets called. Possibly, this is a documentation problem, but here goes: Take two classes, A and B, where B is the child of A. Construct a B. Pickle it. Unpickle it, and you find that the