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.23:23:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619220205.21.0.409265490599.issue42725@roundup.psfhosted.org>
In-reply-to
Content
Wouldn't it be easier to just throw an exception in the stringizing code?  I note that there are dedicated functions to generate walrus, yield, yield from, and await in Python/ast_unparse.c.  In theory this is a general-purpose facility, but in practice it's not part of the limited API, and it's called from literally one place, the "stringize this annotation" call site inside compile.c.
History
Date User Action Args
2021-04-23 23:23:25larrysetrecipients: + larry, gvanrossum, Mark.Shannon, serhiy.storchaka, lys.nikolaou, pablogsal, BTaskaya
2021-04-23 23:23:25larrysetmessageid: <1619220205.21.0.409265490599.issue42725@roundup.psfhosted.org>
2021-04-23 23:23:25larrylinkissue42725 messages
2021-04-23 23:23:25larrycreate