[ python-Bugs-1326448 ] set.__getstate__ is not overriden

SourceForge.net noreply at sourceforge.net
Fri Oct 14 09:14:19 CEST 2005


Bugs item #1326448, was opened at 2005-10-14 01:38
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1326448&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: George Sakkis (gsakkis)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: set.__getstate__ is not overriden

Initial Comment:
>>> import pickle
>>> class Foo(set):
...     def __getstate__(self): assert False

>>> pickle.dumps(Foo())
# doesn't raise AssertionError

The same happens with frozenset.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1326448&group_id=5470


More information about the Python-bugs-list mailing list