From de468dbe57d1b79d2b26f88858d40563b0644f0b Mon Sep 17 00:00:00 2001 From: John Choi <5154439+isnbh0@users.noreply.github.com> Date: Wed, 2 Aug 2023 20:53:09 +0900 Subject: [PATCH] PEP 617: Fix expression typo in rationale (#3244) --- pep-0617.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0617.rst b/pep-0617.rst index 7481e79f2a5..76f182405b0 100644 --- a/pep-0617.rst +++ b/pep-0617.rst @@ -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