New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eliminate recursion in pickling #46732
Comments
In the attached demo I create a graph of 250 nodes, all of which are When I try to pickle this graph, it fails in various ways. In regular If connections are described using a dictionary or even a list, I get |
So now I've learned that this is a result of the way Pickler is I have now written one such implementation that is a subclass of the |
Sidenote: If I click "edit" for nonrecursivepickler.py, I get told that However I have now fixed a mistake in my code. |
I just ran into this behavior with an attempt to pickle a dom tree for |
Bob Kline wrote:
Pickling recursive data-structure should not crash the interpreter.
The section of documentation, you are referring to, uses the term Trying to pickle a highly recursive data structure may exceed the |
I have also described the crash, but it makes sense to handle it |
Looks like Daniel beat me to the punch. |
I've provided an alternate implementation of this that works with very |
I am closing this issue in favour of bpo-3119, since Aaron's patch is Thank you Daniel for the idea! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: