Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Merged
ambv merged 1 commit intopython:mainfromcolesbury:docs-gc-untrack
Oct 27, 2021

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedOct 27, 2021
edited by bedevere-bot
Loading

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) shouldcall PyObject_GC_UnTrack() from their destructors before clearing anyfields which may point to other "container" objects.
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 27, 2021
…pythonGH-29246)Objects that support garbage collection ("container" objects) shouldcall PyObject_GC_UnTrack() from their destructors before clearing anyfields which may point to other "container" objects.(cherry picked from commit35e1ff3)Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-bot
Copy link

GH-29248 is a backport of this pull request to the3.9 branch.

colesbury referenced this pull request in colesbury/nogilOct 27, 2021
…Track() (GH-29246)Objects that support garbage collection ("container" objects) shouldcall PyObject_GC_UnTrack() from their destructors before clearing anyfields which may point to other "container" objects.(cherry picked from commit35e1ff3)Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-bot
Copy link

GH-29249 is a backport of this pull request to the3.10 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.10only security fixes labelOct 27, 2021
ambv pushed a commit that referenced this pull requestOct 28, 2021
…Track() (GH-29246) (GH-29249)Objects that support garbage collection ("container" objects) shouldcall PyObject_GC_UnTrack() from their destructors before clearing anyfields which may point to other "container" objects.(cherry picked from commit35e1ff3)Co-authored-by: Sam Gross <colesbury@gmail.com>
ambv pushed a commit that referenced this pull requestOct 28, 2021
…GH-29246) (GH-29248)Objects that support garbage collection ("container" objects) shouldcall PyObject_GC_UnTrack() from their destructors before clearing anyfields which may point to other "container" objects.(cherry picked from commit35e1ff3)Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesburycolesbury deleted the docs-gc-untrack branchNovember 18, 2021 19:16
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@ambvambv

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@colesbury@miss-islington@bedevere-bot@ambv@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp