This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients BTaskaya, Guido.van.Rossum, Mark.Shannon, gvanrossum, larry, lys.nikolaou, pablogsal, serhiy.storchaka
Date 2021-04-24.16:12:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619280732.43.0.419783786772.issue42725@roundup.psfhosted.org>
In-reply-to
Content
>  I just thought having a whole “expr-without-walrus-or-yield” subgrammar would be tedious.

Yeah I have experimented with something similar in the past and this becomes out of hand super quickly and leafs to a lot of duplication.

Similarly, a flag that conditionally accept some rules can be quite tricky to hey right with the backtracking and those require some extra metagrammar so adding the flag is not super unreadable. 

In my humble opinion, I think is far simpler to reject this after the parsing is done, either in the compiler or the symbol table.
History
Date User Action Args
2021-04-24 16:12:12pablogsalsetrecipients: + pablogsal, gvanrossum, larry, Mark.Shannon, serhiy.storchaka, Guido.van.Rossum, lys.nikolaou, BTaskaya
2021-04-24 16:12:12pablogsalsetmessageid: <1619280732.43.0.419783786772.issue42725@roundup.psfhosted.org>
2021-04-24 16:12:12pablogsallinkissue42725 messages
2021-04-24 16:12:12pablogsalcreate