diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 7adb601eed6..c958e7ab719 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1687,7 +1687,7 @@ Or, when processing a file stream in chunks: while chunk := file.read(9000): process(chunk) -Assignment expressions must surrounded by parentheses when used +Assignment expressions must be surrounded by parentheses when used as sub-expressions in subscript, slicing, conditional, lambda, keyword-argument, generator, and comprehension-if expressions. They can only be used as is in if and while statements and in decorators.