8000 bpo-39545: docs: do not use await in f-strings (GH-18434) · python/cpython@a2963f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2963f0

Browse files
authored
bpo-39545: docs: do not use await in f-strings (GH-18434)
1 parent c352e6c commit a2963f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ Functions defined with ``async def`` syntax are always coroutine functions,
730730
even if they do not contain ``await`` or ``async`` keywords.
731731

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

735735
An example of a coroutine function::
736736

0 commit comments

Comments
 (0)
0