[Python-bugs-list] [ python-Bugs-482752 ] __getstate__ & __setstate__ ignored
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 23 Nov 2001 20:02:32 -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: Open
Resolution: None
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: 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