[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

miss-islington report at bugs.python.org
Sun Mar 15 00:46:30 EDT 2020


miss-islington <mariatta.wijaya+miss-islington at gmail.com> added the comment:


New changeset f7e32fcbd65490c921e1836c2399827d14d0eb7b by Miss Islington (bot) in branch '3.8':
bpo-39965: Correctly raise SyntaxError if await is used outside async functions when PyCF_ALLOW_TOP_LEVEL_AWAIT is set (GH-19010)
https://github.com/python/cpython/commit/f7e32fcbd65490c921e1836c2399827d14d0eb7b


----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39965>
_______________________________________


More information about the Python-bugs-list mailing list