We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7503b4f + 25187e6 commit ca3f294Copy full SHA for ca3f294
1 file changed
Doc/tutorial/modules.rst
@@ -72,7 +72,8 @@ More on Modules
72
73
A module can contain executable statements as well as function definitions.
74
These statements are intended to initialize the module. They are executed only
75
-the *first* time the module is imported somewhere. [#]_
+the *first* time the module name is encountered in an import statement. [#]_
76
+(They are also run if the file is executed as a script.)
77
78
Each module has its own private symbol table, which is used as the global symbol
79
table by all functions defined in the module. Thus, the author of a module can
0 commit comments