From 8606d403fb7fe5900e19f4e630fab4f3bd35f9aa Mon Sep 17 00:00:00 2001 From: JimJJewett Date: Tue, 10 Jul 2018 12:29:03 -0400 Subject: [PATCH] occurrs -> occurs typo (#725) --- pep-0572.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0572.rst b/pep-0572.rst index 80ea56a45..7d2abbb7f 100644 --- a/pep-0572.rst +++ b/pep-0572.rst @@ -243,7 +243,7 @@ or ``[[(j := j) for i in range(5)] for j in range(5)]``. Note that this exception also applies to ``[i := 0 for i, j in stuff]``, as well as to cases like ``[i+1 for i in i := stuff]``. -A further exception applies when an assignment expression occurrs in a +A further exception applies when an assignment expression occurs in a comprehension whose containing scope is a class scope. If the rules above were to result in the target being assigned in that class's scope, the assignment expression is expressly invalid.