Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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 commentedOct 27, 2021
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 commentedOct 27, 2021
Sorry@colesbury and@ambv, I had trouble checking out the |
…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 commentedOct 27, 2021
GH-29248 is a backport of this pull request to the3.9 branch. |
…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 commentedOct 27, 2021
GH-29249 is a backport of this pull request to the3.10 branch. |
…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>
Uh oh!
There was an error while loading.Please reload this page.
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