PEP 617: Fix expression typo in rationale (#3244)

This commit is contained in:
John Choi 2023-08-02 20:53:09 +09:00 committed by GitHub
parent 68a7773da4
commit de468dbe57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ an LL(1) parser) several rules are not LL(1) and several workarounds are
implemented in the grammar and in other parts of CPython to deal with this. For
example, consider the rule for assignment expressions::
namedexpr_test: NAME [':=' test]
namedexpr_test: [NAME ':='] test
This simple rule is not compatible with the Python grammar as *NAME* is among the
elements of the *first set* of the rule *test*. To work around this limitation the