New submission from Brian:

PEP 492 lists the following under "valid syntax" and yet 3.5.2 raises a 

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 <>
Python-bugs-list mailing list

Reply via email to