Skip to content

gh-143928: Remove outdated comparison between pickle and marshal regarding recursion - #144025

Merged
vstinner merged 1 commit into
python:mainfrom
Yashp002:outdatedmarshal
Jan 26, 2026
Merged

gh-143928: Remove outdated comparison between pickle and marshal regarding recursion#144025
vstinner merged 1 commit into
python:mainfrom
Yashp002:outdatedmarshal

Conversation

@Yashp002

@Yashp002Yashp002 commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Removes an outdated section in the pickle module documentation that incorrectly states marshal does 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/

@bedevere-appbedevere-appBot added docs Documentation in the Doc dir skip news awaiting review labels Jan 19, 2026
@Yashp002Yashp002 changed the title gh-[143298]: Remove outdated documentation comparing pickle and marshalgh-[#143298]: Remove outdated documentation comparing pickle and marshalJan 19, 2026
@Yashp002Yashp002 changed the title gh-[#143298]: Remove outdated documentation comparing pickle and marshalgh-#143298: Remove outdated documentation comparing pickle and marshalJan 19, 2026
@Yashp002Yashp002 changed the title gh-#143298: Remove outdated documentation comparing pickle and marshalgh-143298: Remove outdated documentation comparing pickle and marshalJan 19, 2026
@Yashp002Yashp002 changed the title gh-143298: Remove outdated documentation comparing pickle and marshalgh-143928: Remove outdated comparison between pickle and marshal regarding recursionJan 19, 2026
@Yashp002

Copy link
Copy Markdown
ContributorAuthor

@picnixz Would this PR be satisfactory?

@picnixzpicnixz left a comment

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
ContributorAuthor

@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

@vstinner
vstinner merged commit 923d9d2 into python:mainJan 26, 2026
40 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsJan 26, 2026
@vstinnervstinner added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 26, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @Yashp002 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @Yashp002 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 26, 2026
…l regarding recursion (pythonGH-144025)
(cherry picked from commit 923d9d2)
Co-authored-by: Yashraj <yashrajpala8@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 26, 2026
…l regarding recursion (pythonGH-144025)
(cherry picked from commit 923d9d2)
Co-authored-by: Yashraj <yashrajpala8@gmail.com>
@bedevere-app

Copy link
Copy Markdown

GH-144246 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jan 26, 2026
@bedevere-app

Copy link
Copy Markdown

GH-144247 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jan 26, 2026
@vstinner

Copy link
Copy Markdown
Member

Merged, thank you.

vstinner pushed a commit that referenced this pull request Jan 26, 2026
…al regarding recursion (GH-144025) (#144247)
gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025)
(cherry picked from commit 923d9d2)
Co-authored-by: Yashraj <yashrajpala8@gmail.com>
vstinner pushed a commit that referenced this pull request Jan 26, 2026
…al regarding recursion (GH-144025) (#144246)
gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025)
(cherry picked from commit 923d9d2)
Co-authored-by: Yashraj <yashrajpala8@gmail.com>
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@Yashp002@vstinner@picnixz