From 09653d783ea2bef0ea40832e8bce8ee62d4a6c2c Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 15 Nov 2020 02:41:55 -0500 Subject: [PATCH] Add 'be' --- Doc/reference/expressions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.