Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39545> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com