]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-58749: Remove incorrect language spec claims about the global statement (GH-126523)
authorBeomsoo Kim <beoms424@gmail.com>
Tue, 12 Nov 2024 00:11:40 +0000 (09:11 +0900)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2024 00:11:40 +0000 (10:11 +1000)
commit494360afd00dc8f6b549f160525c3e86ec14905d
tree4a8c722e9a664ee5118680e7c8c32960bfcefd80
parenta6d48e8f8323758771f5e130f67c9bdf7b4f25c5
gh-58749: Remove incorrect language spec claims about the global statement (GH-126523)

* Removes erroneous explanation of the `global` statement restrictions; a name declared as global can be subsequently bound using any kind of name binding operation.
* Updates `test_global.py` to also test various name-binding scenarios for global
variables to ensure correct behavior
Doc/reference/simple_stmts.rst
Lib/test/test_global.py
Misc/ACKS