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 <rep...@bugs.python.org> <http://bugs.python.org/issue30691> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com