-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
3.12 tracing regression: a conditional in a finally block will revisit the condition before exiting the block. #105658
Comments
4 tasks
Confirmed on current main branch |
Why change of location is needed here? Line 3236 in 20a56d8
I've deleted it(same for compiler_try_star_finally ) and seems this fixes the issue, but I don't sure that's correct solution.
|
rmartin16
added a commit
to rmartin16/briefcase
that referenced
this issue
Sep 1, 2023
- python-dateutil uses the deprecated datetime.utcfromtimestamp(); its next release after 2.8.2 will no longer use this function. - Missing coverage is being falsely reported for an exit from a finally block; the coverage exclusion can be removed with python/cpython#105658.
Sorry, this dropped off my radar. I made a PR to remove the line number from these instructions (which are virtual). |
iritkatriel
added a commit
that referenced
this issue
Sep 14, 2023
iritkatriel
added a commit
to iritkatriel/cpython
that referenced
this issue
Sep 14, 2023
… a conditional block (python#109384) (cherry picked from commit 4a54074)
Yhg1s
pushed a commit
that referenced
this issue
Sep 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.12 introduced a change in tracing behavior. Now a conditional in a finally block will revisit the condition before exiting the block.
Here is test.py:
When traced under 3.11:
When traced under 3.12:
The extra line is marked with
<******
. There's no reason for the if statement to be traced again.Linked PRs
The text was updated successfully, but these errors were encountered: