8000 gh-58749: Removes the erroneous explanation regarding the restrictions of the global statement by bombs-kim · Pull Request #126523 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-58749: Removes the erroneous explanation regarding the restrictions of the global statement #126523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
With the change in the documentation, the previous warning no longer …
…applies.
  • Loading branch information
bombs-kim committed Nov 11, 2024
commit ec10a82c195379dbd2614509c259953ef89b4651
6 changes: 0 additions & 6 deletions Doc/reference/simple_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -975,12 +975,6 @@ The global statement applies to the entire scope of a function or
class body. A :exc:`SyntaxError` is raised if a variable is used or
assigned to prior to its global declaration in the scope.

.. impl-detail::

The current implementation does not enforce some of these restrictions, but
programs should not abuse this freedom, as future implementations may enforce
them or silently change the meaning of the program.

.. index::
pair: built-in function; exec
pair: built-in function; eval
Expand Down
Loading
0