Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-143928: Remove outdated comparison between pickle and marshal regarding recursion#144025
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Yashp002 commentedJan 25, 2026
@picnixz Would this PR be satisfactory? |
picnixz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yes, but please check that there is no such comparison in marshal.rst as well (maybe we have this kind of mention in marshal.rst, idk)
Yashp002 commentedJan 26, 2026
@picnixz The only 4 mentions of the pickle module in marshal.rst seem to be about RPC calls and where pickle can be used. Nothing that suggests marshal doesn't support recursion or object sharing. So i think this is fine |
923d9d2 intopython:mainUh oh!
There was an error while loading.Please reload this page.
…l regarding recursion (pythonGH-144025)(cherry picked from commit923d9d2)Co-authored-by: Yashraj <yashrajpala8@gmail.com>
…l regarding recursion (pythonGH-144025)(cherry picked from commit923d9d2)Co-authored-by: Yashraj <yashrajpala8@gmail.com>
GH-144246 is a backport of this pull request to the3.14 branch. |
GH-144247 is a backport of this pull request to the3.13 branch. |
vstinner commentedJan 26, 2026
Merged, thank you. |
Uh oh!
There was an error while loading.Please reload this page.
Removes an outdated section in the
picklemodule documentation that incorrectly statesmarshaldoes not support object sharing or recursive objects.As confirmed by core developers,
marshal(protocol version 3+) supports both shared references and recursion, making the previous claim inaccurate. This change simply removes the incorrect statement without adding further comparisons, as requested.Fixes#143298
📚 Documentation preview 📚:https://cpython-previews--144025.org.readthedocs.build/