Message391750
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. |
|
Date |
User |
Action |
Args |
2021-04-23 23:23:25 | larry | set | recipients:
+ larry, gvanrossum, Mark.Shannon, serhiy.storchaka, lys.nikolaou, pablogsal, BTaskaya |
2021-04-23 23:23:25 | larry | set | messageid: <1619220205.21.0.409265490599.issue42725@roundup.psfhosted.org> |
2021-04-23 23:23:25 | larry | link | issue42725 messages |
2021-04-23 23:23:25 | larry | create | |
|