SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

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
B
Beomsoo Kim committed
494360afd00dc8f6b549f160525c3e86ec14905d
Parent: a6d48e8
Committed by GitHub <noreply@github.com> on 11/12/2024, 12:11:40 AM