◐ Shell
clean mode source ↗

[3.14] gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962) by miss-islington · Pull Request #134305 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Conversation

@miss-islington

@miss-islington miss-islington commented

May 20, 2025

edited by bedevere-app Bot

Loading

Copy link Copy Markdown

Contributor

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

…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 AA-Turner merged commit 07a2033 into python:3.14

May 20, 2025

48 checks passed

@miss-islington miss-islington deleted the backport-e575190-3.14 branch

January 2, 2026 18:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@AA-Turner AA-Turner AA-Turner approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington @AA-Turner @encukou