[issue30691] WeakSet is not pickleable
Raymond Hettinger
report at bugs.python.org
Sun Jun 18 02:09:54 EDT 2017
Raymond Hettinger added the comment:
> If you pickle also hard refereces to the items,
> a WeakSet can be pickled and unpickled as expected (after
> fixing __reduce__).
That seems contrary to the original intent of a WeakSet. I recommend not going down the path of adding pickle support.
If copying is also broken, then it is reasonable to either fix it or remove it depending on whether a fix is straight-forward.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30691>
_______________________________________
More information about the Python-bugs-list
mailing list