Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bpo-39545: docs: do not use await in f-strings (GH-18434)
  • Loading branch information
elenaoat committed Feb 10, 2020
1 parent c352e6c commit a2963f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/compound_stmts.rst
Expand Up @@ -730,7 +730,7 @@ Functions defined with ``async def`` syntax are always coroutine functions,
even if they do not contain ``await`` or ``async`` keywords.

It is a :exc:`SyntaxError` to use ``yield from`` expressions in
``async def`` coroutines.
``async def`` coroutines. Using ``await`` in :keyword:`f-strings` will also produce a :exc:`SyntaxError`.

An example of a coroutine function::

Expand Down

0 comments on commit a2963f0

Please sign in to comment.