Skip to content

Commit c56f9df

Browse files
[doc] Mention with and except clauses in globals() (GH-13232)
1 parent 3d569fd commit c56f9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ Names listed in a :keyword:`global` statement must not be used in the same code
950950
block textually preceding that :keyword:`!global` statement.
951951

952952
Names listed in a :keyword:`global` statement must not be defined as formal
953-
parameters or in a :keyword:`for` loop control target, :keyword:`class`
953+
parameters, or as targets in :keyword:`with` statements or :keyword:`except` clauses, or in a :keyword:`for` target list, :keyword:`class`
954954
definition, function definition, :keyword:`import` statement, or variable
955955
annotation.
956956

0 commit comments

Comments
 (0)