[Python-checkins] [doc] Mention with and except clauses in globals() (GH-13232)

JulienPalard webhook-mailer at python.org
Sat Dec 19 10:48:17 EST 2020


https://github.com/python/cpython/commit/c56f9df0498498d17972fe02046fd235c9a6017f
commit: c56f9df0498498d17972fe02046fd235c9a6017f
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: JulienPalard <julien at palard.fr>
date: 2020-12-19T16:48:06+01:00
summary:

[doc] Mention with and except clauses in globals() (GH-13232)

files:
M Doc/reference/simple_stmts.rst

diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index f8ab2e918c6a1..2c6c90140201c 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.
 



More information about the Python-checkins mailing list