From a2963f09629a0a8c63e9acef79c1dcc0a040ddb6 Mon Sep 17 00:00:00 2001 From: Elena Oat Date: Mon, 10 Feb 2020 12:28:11 -0800 Subject: bpo-39545: docs: do not use await in f-strings (GH-18434) --- Doc/reference/compound_stmts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 8d050a6..b4e95b9 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:: -- cgit v0.12