bpo-43892: Validate the first term of complex literal value patterns #25735
Conversation
|
LGTM I checked also for refleaks (although this really doesn't add any new paths were we can leak):
|
|
Thanks for the cleanup, @brandtbucher ! |
dbe60ee
into
python:master
12 checks passed
12 checks passed
kreathon
added a commit
to kreathon/cpython
that referenced
this pull request
May 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


This fixes validation of complex literal value patterns in the parser and factors out the old
compiler_pattern_captureandcompiler_pattern_wildcardroutines to better match the current AST.(A few other cleanups, too.)
https://bugs.python.org/issue43892