summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Oat <oat.elena@gmail.com>2020-02-10 12:28:11 -0800
committerGitHub <noreply@github.com>2020-02-10 15:28:11 -0500
commita2963f09629a0a8c63e9acef79c1dcc0a040ddb6 (patch)
tree8b5113f6f533a55cf19de755e5562c5336e76926
parentcloses bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18350) (diff)
downloadcpython-a2963f09629a0a8c63e9acef79c1dcc0a040ddb6.tar.gz
cpython-a2963f09629a0a8c63e9acef79c1dcc0a040ddb6.tar.bz2
cpython-a2963f09629a0a8c63e9acef79c1dcc0a040ddb6.zip
bpo-39545: docs: do not use await in f-strings (GH-18434)
-rw-r--r--Doc/reference/compound_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 8d050a69a93..b4e95b90dbc 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::