From: Andre Delfino Date: Sat, 19 Dec 2020 15:48:06 +0000 (-0300) Subject: [doc] Mention with and except clauses in globals() (GH-13232) X-Git-Tag: v3.10.0a4~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c56f9df0498498d17972fe02046fd235c9a6017f;p=thirdparty%2FPython%2Fcpython.git [doc] Mention with and except clauses in globals() (GH-13232) --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index f8ab2e918c6a..2c6c90140201 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -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.