◐ Shell
clean mode source ↗

gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ by encukou · Pull Request #133962 · python/cpython

This will call tp_dealloc and clear all members.

@bedevere-app Bot mentioned this pull request

May 13, 2025

13 tasks

This was referenced

May 13, 2025

serhiy-storchaka

serhiy-storchaka

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 20, 2025
…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>

AA-Turner pushed a commit that referenced this pull request

May 20, 2025
…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>

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request

Jul 12, 2025
…d __new__ (pythonGH-133962)

Call Py_XDECREF rather than PyObject_GC_Del in failed __new__

This will call tp_dealloc and clear all members.

taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request

Aug 4, 2025
…d __new__ (pythonGH-133962)

Call Py_XDECREF rather than PyObject_GC_Del in failed __new__

This will call tp_dealloc and clear all members.