gh-156466: fix cleanup on error in codegen_class_body by iritkatriel · Pull Request #156507 · python/cpython · GitHub
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

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

@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>
@bedevere-bot

Copy link
Copy Markdown

clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
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.

3 participants