-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Match doc: Clarify '_' as a soft keyword #88191
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
In bpo-44010, we are trying, as best as is possible with comprehensible REs, to identify in which circumstances occurrences of 'match', 'case' and '_' are keywords, and should be marked as such. I was initially unsure and even wrong about '_'.
>>> _ = 'a'
>>> match [_, 'b']:
... case [capture, _] if _ == 'a':
... print(capture, _)
...
a a I added (in PR to come, with markup that might be improved) Please consider also adding an example like the above. |
Since it's merged and the changes shown, then despite it showing as |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: