Skip to content

gh-159739: Release tuple items if resizing fails - #159754

Merged
gpshead merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-tuple-resize
Oct 19, 2026
Merged

gpshead merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-tuple-resize

Conversation

@jelle-openai

@jelle-openai jelle-openai commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Release the references still held by the original tuple when
reallocation fails.

Backport to 3.15 and 3.14.

Release the references still held by the original tuple when
reallocation fails.

Backport to 3.15 and 3.14.
@JelleZijlstra JelleZijlstra added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 19, 2026
@gpshead
gpshead enabled auto-merge (squash) October 19, 2026 20:27
@gpshead
gpshead merged commit 14cd72b into python:main Oct 19, 2026
66 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @jelle-openai for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 19, 2026

Copy link
Copy Markdown

GH-159787 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 19, 2026
@bedevere-app

bedevere-app Bot commented Oct 19, 2026

Copy link
Copy Markdown

GH-159788 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 19, 2026
gpshead pushed a commit that referenced this pull request Oct 19, 2026
…159788)

gh-159739: Release tuple items if resizing fails (GH-159754)

Release the references still held by the original tuple when
reallocation fails.

Backport to 3.15 and 3.14.
(cherry picked from commit 14cd72b)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
gpshead pushed a commit that referenced this pull request Oct 19, 2026
…159787)

gh-159739: Release tuple items if resizing fails (GH-159754)

Release the references still held by the original tuple when
reallocation fails.

Backport to 3.15 and 3.14.
(cherry picked from commit 14cd72b)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants