8000 [3.11] gh-103971: Fix wrong line number generated for match-case blocks by gaogaotiantian · Pull Request #103980 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-103971: Fix wrong line number generated for match-case blocks #103980

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

Merged
merged 4 commits into from
Apr 28, 2023

Conversation

gaogaotiantian
Copy link
Member
@gaogaotiantian gaogaotiantian commented Apr 28, 2023

The residue location issue would cause the case block setting the line number of RETURN_VALUE to the code block just parsed, which confuses debugger to believe the last line of the code block was executed even though it was not.

Copy link
Member
@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix (and welcome to the compiler)!

@brandtbucher brandtbucher enabled auto-merge (squash) April 28, 2023 19:27
@gaogaotiantian
Copy link
Member Author

Thank you for the guidance!

@brandtbucher brandtbucher self-assigned this Apr 28, 2023
@brandtbucher brandtbucher added type-bug An unexpected behavior, bug, or error interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Apr 28, 2023
@brandtbucher
Copy link
Member

Can you open a PR with just the new test against main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0