Skip to content

gh-156466: fix cleanup on error in codegen_class_body - #156507

Merged
iritkatriel merged 2 commits into
python:mainfrom
iritkatriel:gh-156466-5
Aug 28, 2026
Merged

gh-156466: fix cleanup on error in codegen_class_body#156507
iritkatriel merged 2 commits into
python:mainfrom
iritkatriel:gh-156466-5

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Aug 28, 2026

Copy link
Copy Markdown
Member

Alternatively, we could extract all the in-scope stuff into a helper function and use the normal macros.

@iritkatriel iritkatriel added skip news needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 28, 2026
@iritkatriel
iritkatriel enabled auto-merge (squash) August 28, 2026 20:27
@iritkatriel
iritkatriel merged commit 683ef40 into python:main Aug 28, 2026
51 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 28, 2026
@bedevere-app

bedevere-app Bot commented Aug 28, 2026

Copy link
Copy Markdown

GH-156536 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 Aug 28, 2026
iritkatriel added a commit that referenced this pull request Aug 28, 2026
…) (#156536)

gh-156466: fix cleanup on error in codegen_class_body (GH-156507)
(cherry picked from commit 683ef40)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants