[issue42725] PEP 563: Should the behavior change for yield/yield from's
Batuhan Taskaya
report at bugs.python.org
Sat Apr 24 03:40:04 EDT 2021
Batuhan Taskaya <isidentical at gmail.com> added the comment:
> That can be done after the PEG grammar has accepted them
But wouldn't we still end up with maintaining a custom flag to see if we are in annotation (e.g a: Something((yield) + 2)) and act upon that which would seem to do a bit messy in the grammar actions rather than just throwing syntax errors from switch/cases inside of symbol table?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42725>
_______________________________________
More information about the Python-bugs-list
mailing list