Skip to content

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Oct 27, 2022

This PR removes the recursive updates which made the locations incorrect.

They are still too broad in some cases, but we should deal with the separately. (One thing we would need to do is to save the locations of identifiers alongside the "stores" list.)

@iritkatriel iritkatriel added type-bug An unexpected behavior, bug, or error interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Oct 27, 2022
Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

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

Looks fine to me, but I'll leave it to @brandtbucher to review as he wrote the pattern matching code.

@iritkatriel iritkatriel self-assigned this Oct 31, 2022
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 tackling this!

@brandtbucher brandtbucher changed the title gh-98762: Fix locations of match sub-expressions gh-98762: Fix locations of match sub-patterns Nov 11, 2022
iritkatriel and others added 3 commits November 11, 2022 23:17
@iritkatriel iritkatriel merged commit fb844e1 into python:main Nov 12, 2022
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.

4 participants