Message391754
So shouldn't we just rule out some specific bits of syntax in annotations? That can be done after the PEG grammar has accepted them, otherwise we'd end up having a whole new expression-like grammar section that excludes them. I think this is the list we should exclude, right?
- yield [from]
- walrus
- await (?)
I agree await technically doesn't need to be in this list, so maybe we shouldn't explicitly exclude it -- it's no different than writing
def f(x: open(filename).read()):
... |
|
Date |
User |
Action |
Args |
2021-04-24 02:21:41 | gvanrossum | set | recipients:
+ gvanrossum, larry, Mark.Shannon, serhiy.storchaka, lys.nikolaou, pablogsal, BTaskaya |
2021-04-24 02:21:41 | gvanrossum | set | messageid: <1619230901.54.0.238952923514.issue42725@roundup.psfhosted.org> |
2021-04-24 02:21:41 | gvanrossum | link | issue42725 messages |
2021-04-24 02:21:40 | gvanrossum | create | |
|