Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_PyCompile_CodeGen compiles nested function all the way to code object #117901

Closed
iritkatriel opened this issue Apr 15, 2024 · 0 comments · Fixed by #118007
Closed

_PyCompile_CodeGen compiles nested function all the way to code object #117901

iritkatriel opened this issue Apr 15, 2024 · 0 comments · Fixed by #118007
Assignees
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Apr 15, 2024

Bug report

The _PyCompile_CodeGen test utility is supposed to run only codegen and return an instruction sequence. However, it compiles nested functions all the way to code object. Need to teach it how to return the instruction sequence for the nested function.

Linked PRs

@iritkatriel iritkatriel added type-bug An unexpected behavior, bug, or error 3.13 bugs and security fixes labels Apr 15, 2024
@iritkatriel iritkatriel self-assigned this Apr 15, 2024
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Apr 17, 2024
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Apr 17, 2024
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Apr 17, 2024
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Apr 17, 2024
iritkatriel added a commit that referenced this issue Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
1 participant