-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ #133962
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
Conversation
This will call tp_dealloc and clear all members.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also https://github.com/python/cpython/pull/133924/files#r2084922874
There may be other similar errors in these files.
I'll merge to fix the tier-1 buildbot; further fix-ups welcome. |
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, @encukou, I could not cleanly backport this to
|
Thanks for the fix & merge @encukou -- backport will fail as the original commit isn't yet backported. |
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…d __new__ (pythonGH-133962) Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ This will call tp_dealloc and clear all members. (cherry picked from commit e575190) Co-authored-by: Petr Viktorin <encukou@gmail.com>
GH-134305 is a backport of this pull request to the 3.14 branch. |
…ed __new__ (GH-133962) (#134305) gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962) Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ This will call tp_dealloc and clear all members. (cherry picked from commit e575190) Co-authored-by: Petr Viktorin <encukou@gmail.com>
This will call tp_dealloc and clear all members.