Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b36bd4fe
Commit
b36bd4fe
authored
Apr 01, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.
parent
7758fa43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/ref/ref6.tex
Doc/ref/ref6.tex
+3
-3
No files found.
Doc/ref/ref6.tex
View file @
b36bd4fe
...
...
@@ -719,9 +719,9 @@ information.
The
\keyword
{
global
}
statement is a declaration which holds for the
entire current code block. It means that the listed identifiers are to be
interpreted as globals.
While
\emph
{
using
}
global names is automatic
if they are not defined in the local scope,
\emph
{
assigning
}
to global
names would be impossible without
\keyword
{
global
}
.
interpreted as globals.
It would be impossible to assign to a global
variable without
\keyword
{
global
}
, although free variables may refer
to globals without being declared global
.
\indexiii
{
global
}{
name
}{
binding
}
Names listed in a
\keyword
{
global
}
statement must not be used in the same
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment