[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

Batuhan Taskaya report at bugs.python.org
Thu Jan 7 17:24:28 EST 2021


Batuhan Taskaya <isidentical at gmail.com> added the comment:

Well even though I still don't understand 'how this issue is different than issue42725', I don't think you actually fix the symbol table;
see this one: https://bugs.python.org/msg383659

Annotations still have side effects on the symbol table (even though they shouldn't have). and I already had a fix but decided not to go for it until issue42737 is resolved since it would make the language inconsistent. Just FYI.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42837>
_______________________________________


More information about the Python-bugs-list mailing list