[New-bugs-announce] [issue31192] "return await coro()" SyntaxError despite being "valid syntax" in PEP 492
Brian
report at bugs.python.org
Sun Aug 13 00:58:12 EDT 2017
New submission from Brian:
PEP 492 lists the following under "valid syntax" and yet 3.5.2 raises a SyntaxError:
def foo():
return await coro()
but this works:
def bar():
return await (coro())
----------
components: Interpreter Core
messages: 300209
nosy: merrellb
priority: normal
severity: normal
status: open
title: "return await coro()" SyntaxError despite being "valid syntax" in PEP 492
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31192>
_______________________________________
More information about the New-bugs-announce
mailing list