-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
sys.monitoring branches for match
cases showing incorrectly
#123044
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
Comments
Do we craete issues for unmerged PR? I thought issues are supposed to be about code that's already merged. For unmerged PRs, shouldn't we just discuss it in the PR itself? |
I don't think there is any harm in creating a new issue. We often break down larger pieces of work into smaller issues. |
I think we should tackle these issues of locations within
@iritkatriel does that make sense to you? |
I think it's doing the opposite now. Will need to experiment with this. |
Given that we cannot reliably expected We still need correct locations for actual expressions, but we should be fine with the compiler filling in locations as it does now for artificial instructions. |
…he body, not the pattern. (pythonGH-130627)
Bug report
Bug description:
With the code from PR 122564, the destinations of branches into the blocks of certain
case
s are mapping to the pattern as well, making them look like they go out of scope:This code yields (branches listing below extracted from
co_branches()
):@markshannon @nedbat
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
POP_TOP
after a case test a location in the body, not the pattern. #130627The text was updated successfully, but these errors were encountered: