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
25187e66
Commit
25187e66
authored
Apr 21, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15575: Clarify tutorial description of when modules are executed.
parent
bebe91a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Doc/tutorial/modules.rst
Doc/tutorial/modules.rst
+2
-1
No files found.
Doc/tutorial/modules.rst
View file @
25187e66
...
...
@@ -72,7 +72,8 @@ More on Modules
A
module
can
contain
executable
statements
as
well
as
function
definitions
.
These
statements
are
intended
to
initialize
the
module
.
They
are
executed
only
the
*
first
*
time
the
module
is
imported
somewhere
.
[#]
_
the
*
first
*
time
the
module
name
is
encountered
in
an
import
statement
.
[#]
_
(
They
are
also
run
if
the
file
is
executed
as
a
script
.)
Each
module
has
its
own
private
symbol
table
,
which
is
used
as
the
global
symbol
table
by
all
functions
defined
in
the
module
.
Thus
,
the
author
of
a
module
can
...
...
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