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 larry
Recipients BTaskaya, Mark.Shannon, gvanrossum, larry, lys.nikolaou, pablogsal, serhiy.storchaka
Date 2021-04-23.22:06:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619215608.19.0.7793659668.issue42725@roundup.psfhosted.org>
In-reply-to
Content
I think stringized annotations should prohibit the same things PEP 649 prohibits: walrus, yield / yield from, and await.

This was easy in my 649 branch; walrus adds locals, and yield / yield from make it a generator.  So the code raises an error if the generated annotations code object has locals or is a generator.  I don't think I had to do anything special to prohibit await, because that's only valid in a function declared "async def", which annotations code objects are not.
History
Date User Action Args
2021-04-23 22:06:48larrysetrecipients: + larry, gvanrossum, Mark.Shannon, serhiy.storchaka, lys.nikolaou, pablogsal, BTaskaya
2021-04-23 22:06:48larrysetmessageid: <1619215608.19.0.7793659668.issue42725@roundup.psfhosted.org>
2021-04-23 22:06:48larrylinkissue42725 messages
2021-04-23 22:06:47larrycreate