FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() by colesbury · Pull Request #29246 · python/cpython · GitHub

Repository navigation

bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() - #29246

Merged
ambv merged 1 commit into
python:mainfrom
colesbury:docs-gc-untrack
Oct 27, 2021
Merged

ambv merged 1 commit into
python:mainfrom
colesbury:docs-gc-untrack

Conversation

colesbury commented Oct 27, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.

https://bugs.python.org/issue28737

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
bedevere-bot added docs Documentation in the Doc dir awaiting review labels Oct 27, 2021
ambv added the skip news label Oct 27, 2021
ambv merged commit 35e1ff3 into python:main Oct 27, 2021

Copy link
Copy Markdown
Contributor

Thanks @colesbury for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

Copy link
Copy Markdown
Contributor

Sorry @colesbury and @ambv, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 35e1ff38ee67ee543d9fcb268c3552c5397f9b3f 3.10

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 27, 2021
…pythonGH-29246)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
(cherry picked from commit 35e1ff3)

Co-authored-by: Sam Gross <colesbury@gmail.com>

Copy link
Copy Markdown

GH-29248 is a backport of this pull request to the 3.9 branch.

colesbury referenced this pull request in colesbury/nogil Oct 27, 2021
…Track() (GH-29246)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
(cherry picked from commit 35e1ff3)

Co-authored-by: Sam Gross <colesbury@gmail.com>

Copy link
Copy Markdown

GH-29249 is a backport of this pull request to the 3.10 branch.

ambv pushed a commit that referenced this pull request Oct 28, 2021
…Track() (GH-29246) (GH-29249)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
(cherry picked from commit 35e1ff3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
ambv pushed a commit that referenced this pull request Oct 28, 2021
…GH-29246) (GH-29248)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
(cherry picked from commit 35e1ff3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
colesbury deleted the docs-gc-untrack branch November 18, 2021 19:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL