[issue38664] await execution order leads to throw or bad syntax
Andrew Svetlov
report at bugs.python.org
Fri Nov 1 14:40:07 EDT 2019
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
What patch are you talking about?
For me, patch means something special; e.g. working fork of CPython where the proposed idea is implemented.
I read await coro()[key] as
1. Function named coro() returns a dict-like object
2. An element under key is selected from dict, which is expected to be an awaitable.
3. The awaitable is awaited.
Pretty clear and unambiguous.
Changing await priority depending on the presence or absence of brackets on the right makes Python syntax very complex if possible at all.
Sorry, the proposal has zero chance to be accepted.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38664>
_______________________________________
More information about the Python-bugs-list
mailing list