FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-103971: Fix wrong line number generated for match-case blocks by gaogaotiantian · Pull Request #103980 · python/cpython · GitHub

Repository navigation

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

Merged
brandtbucher merged 4 commits into
python:3.11from
gaogaotiantian:3.11-match-loc-fix
Apr 28, 2023
Merged

brandtbucher merged 4 commits into
python:3.11from
gaogaotiantian:3.11-match-loc-fix

Conversation

gaogaotiantian commented Apr 28, 2023 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

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.

brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

brandtbucher enabled auto-merge (squash) April 28, 2023 19:27

Copy link
Copy Markdown
Member Author

Thank you for the guidance!

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

Copy link
Copy Markdown
Member

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL