Skip to content
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

Doc: C API: Delete claim that PyObject_Init is GC-aware #126418

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rhansen
Copy link
Contributor

@rhansen rhansen commented Nov 5, 2024

As far as I can tell, PyObject_Init never tells the garbage collector about the memory even if the Py_TPFLAGS_HAVE_GC flag is set.


📚 Documentation preview 📚: https://cpython-previews--126418.org.readthedocs.build/

As far as I can tell, `PyObject_Init` never tells the garbage
collector about the memory even if the `Py_TPFLAGS_HAVE_GC` flag is
set.
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels Nov 5, 2024
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! This is an old remnant of Python 2, and hasn't been true for uh... 23 years.

@kumaraditya303 kumaraditya303 merged commit 407c036 into python:main Nov 5, 2024
46 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 5, 2024
…26418)

(cherry picked from commit 407c036)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
@bedevere-app
Copy link

bedevere-app bot commented Nov 5, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 5, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 5, 2024
…26418)

(cherry picked from commit 407c036)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
@bedevere-app
Copy link

bedevere-app bot commented Nov 5, 2024

GH-126432 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Nov 5, 2024
kumaraditya303 pushed a commit that referenced this pull request Nov 5, 2024
…126418) (#126431)

Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418)
(cherry picked from commit 407c036)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
kumaraditya303 pushed a commit that referenced this pull request Nov 5, 2024
…126418) (#126432)

Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418)
(cherry picked from commit 407c036)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants