mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Suggestion by Tim Peters clarifying what "before global" means.
(Also added an XXX comment requesting clarification of module initialization -- TBD later.)
This commit is contained in:
parent
e848976fba
commit
b1f97d6765
1 changed files with 2 additions and 1 deletions
|
|
@ -458,6 +458,7 @@ identifier in the list. The form with \keyword{from} performs step
|
||||||
\indexii{importing}{module}
|
\indexii{importing}{module}
|
||||||
\indexii{name}{binding}
|
\indexii{name}{binding}
|
||||||
\kwindex{from}
|
\kwindex{from}
|
||||||
|
% XXX Need to define what ``initialize'' means here
|
||||||
|
|
||||||
The system maintains a table of modules that have been initialized,
|
The system maintains a table of modules that have been initialized,
|
||||||
indexed by module name. This table table
|
indexed by module name. This table table
|
||||||
|
|
@ -548,7 +549,7 @@ names would be impossible without \keyword{global}.
|
||||||
\indexiii{global}{name}{binding}
|
\indexiii{global}{name}{binding}
|
||||||
|
|
||||||
Names listed in a \keyword{global} statement must not be used in the same
|
Names listed in a \keyword{global} statement must not be used in the same
|
||||||
code block before that \keyword{global} statement is executed.
|
code block textually preceding that \keyword{global} statement.
|
||||||
|
|
||||||
Names listed in a \keyword{global} statement must not be defined as formal
|
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 in a \keyword{for} loop control target, \keyword{class}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue