[issue1062277] Pickle breakage with reduction of recursive structures

Alexander Belopolsky report at bugs.python.org
Tue Jul 20 07:38:32 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

As I explained in msg110617 under issue9269, it is possible that we can do better than simply detect reduce cycles and bail out.

I am torn between two options:

1. Reject this patch and wait until a proper solution is found.

2. Admit that better is the enemy of good and start with proper error reporting on reduce cycles by accepting this patch.

My only concern about this patch is that it is likely to affect performance because pickling will have to maintain the "reducing_now" dictionary that is parallel to the memo dictionary.

----------
superseder:  -> Cannot pickle self-referencing sets

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1062277>
_______________________________________


More information about the Python-bugs-list mailing list