diff options
| author | Elena Oat <oat.elena@gmail.com> | 2020-02-10 12:28:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 15:28:11 -0500 |
| commit | a2963f09629a0a8c63e9acef79c1dcc0a040ddb6 (patch) | |
| tree | 8b5113f6f533a55cf19de755e5562c5336e76926 | |
| parent | c352e6c7446c894b13643f538db312092b351789 (diff) | |
| download | cpython-git-a2963f09629a0a8c63e9acef79c1dcc0a040ddb6.tar.gz | |
bpo-39545: docs: do not use await in f-strings (GH-18434)
| -rw-r--r-- | Doc/reference/compound_stmts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 8d050a69a9..b4e95b90db 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -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:: |
