]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Mention with and except clauses in globals() (GH-13232)
authorAndre Delfino <adelfino@gmail.com>
Sat, 19 Dec 2020 15:48:06 +0000 (12:48 -0300)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 15:48:06 +0000 (16:48 +0100)
Doc/reference/simple_stmts.rst

index f8ab2e918c6a10d19cb63f0d76ff2e9ad0338292..2c6c90140201c35e668e7a47b4f1f80026b53d18 100644 (file)
@@ -950,7 +950,7 @@ Names listed in a :keyword:`global` statement must not be used in the same code
 block textually preceding that :keyword:`!global` statement.
 
 Names listed in a :keyword:`global` statement must not be defined as formal
-parameters or in a :keyword:`for` loop control target, :keyword:`class`
+parameters, or as targets in :keyword:`with` statements or :keyword:`except` clauses, or in a :keyword:`for` target list, :keyword:`class`
 definition, function definition, :keyword:`import` statement, or variable
 annotation.