[issue39545] await is not supported in f-string in 3.6
Serhiy Storchaka
report at bugs.python.org
Tue Feb 4 02:27:40 EST 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Yes, await was recognized only in asynchronous functions. f-strings involve a separate parsing step for subexpressions, and it is not aware that it is in an asynchronous function. Seems the fix was unintentional, but it should documented in any case.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39545>
_______________________________________
More information about the Python-bugs-list
mailing list