-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
PEP 695 changed how class decorators are traced #104686
Labels
type-bug
An unexpected behavior, bug, or error
Comments
In the disassembly I see that the instructions for creating the class are on a different (wrong) line: main:
3.11:
So presumably I put the wrong location somewhere in the compiler. I'll take a look. |
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
May 20, 2023
JelleZijlstra
added a commit
that referenced
this issue
May 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commit 24d8b88 ("gh-103763: Implement PEP 695 (#103764)") changed how nested class decorators are traced.
Example file nightly-20230518.py:
Tracing with 3.12.0a7:
Running with newer code:
The different lines are marked with
<*****
.cc: @JelleZijlstra @markshannon
Linked PRs
The text was updated successfully, but these errors were encountered: