8000 gh-116935: Document that heap types need to support garbage collection by savannahostrowski · Pull Request #118021 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116935: Document that heap types need to support garbage collection #118021

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

Merged
merged 8 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
“should”
  • Loading branch information
encukou authored Apr 19, 2024
commit 4ebe973cdc093b4b7ab4ede39e5500c74fcac6f4
2 changes: 1 addition & 1 deletion Doc/c-api/typeobj.rst
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
the type, and the type object is INCREF'ed when a new instance is created, and
DECREF'ed when an instance is destroyed (this does not apply to instances of
subtypes; only the type referenced by the instance's ob_type gets INCREF'ed or
DECREF'ed). Heap types must also :ref:`support garbage collection <supporting-cycle-detection>`
DECREF'ed). Heap types should also :ref:`support garbage collection <supporting-cycle-detection>`
as they can form a reference cycle with their own module object.

**Inheritance:**
Expand Down
0