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 gvanrossum
Recipients BTaskaya, Mark.Shannon, gvanrossum, larry, lys.nikolaou, pablogsal, serhiy.storchaka
Date 2021-04-24.02:21:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619230901.54.0.238952923514.issue42725@roundup.psfhosted.org>
In-reply-to
Content
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()):
    ...
History
Date User Action Args
2021-04-24 02:21:41gvanrossumsetrecipients: + gvanrossum, larry, Mark.Shannon, serhiy.storchaka, lys.nikolaou, pablogsal, BTaskaya
2021-04-24 02:21:41gvanrossumsetmessageid: <1619230901.54.0.238952923514.issue42725@roundup.psfhosted.org>
2021-04-24 02:21:41gvanrossumlinkissue42725 messages
2021-04-24 02:21:40gvanrossumcreate