Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

>  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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42725>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to