Mark Shannon <m...@hotpy.org> added the comment:

I've also opened #42837 which is about fixing the symbol table, so that it is 
correct w.r.t. to current behavior.

I'd like to fix it ASAP as the compiler should be able to rely on the symbol 
table being correct.

Of course, once we have decided what the behavior should be, then it may need 
to be updated again.

I'm inclined to agree that 'yield' in an annotation should probably be a syntax 
error, but I haven't put much thought into to.

----------
nosy: +Mark.Shannon

_______________________________________
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