[Python-bugs-list] [ python-Bugs-482752 ] __getstate__ & __setstate__ ignored
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 24 Nov 2001 17:55:53 -0800
Bugs item #482752, was opened at 2001-11-16 22:08
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=482752&group_id=5470
Category: Type/class unification
Group: Python 2.2
Status: Closed
Resolution: Fixed
Priority: 7
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Guido van Rossum (gvanrossum)
Summary: __getstate__ & __setstate__ ignored
Initial Comment:
pickle does not recognize overloaded __getstate__ or
__setstate__ methods on subclasses of python built-in
types. Instead, the instances' __dict__ attribute is
always pickled.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-11-24 17:55
Message:
Logged In: NO
The patch worked. Thank you Guido!
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-11-24 13:05
Message:
Logged In: YES
user_id=6380
I'm not going to wait for feedback from Anonymous -- I've
checked in the fix as copy_reg.py rev. 1.9.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-11-23 20:02
Message:
Logged In: YES
user_id=6380
You're right about __getstate__, but __setstate__ is
supported just fine.
Please try the patch below and see if that fixes it.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-11-23 20:02
Message:
Logged In: YES
user_id=6380
You're right about __getstate__, but __setstate__ is
supported just fine.
Please try the patch below and see if that fixes it.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=482752&group_id=5470