]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39545: docs: do not use await in f-strings (GH-18434)
authorElena Oat <oat.elena@gmail.com>
Mon, 10 Feb 2020 20:28:11 +0000 (12:28 -0800)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 20:28:11 +0000 (15:28 -0500)
Doc/reference/compound_stmts.rst

index 8d050a69a931d2362ebcb8591060bb1d7cde6d4b..b4e95b90dbc70027219e55cccfb98e59676a36e3 100644 (file)
@@ -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::