File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,9 @@ namespace. Names are resolved in the top-level namespace by searching the
139
139
global namespace, i.e. the namespace of the module containing the code block,
140
140
and the builtins namespace, the namespace of the module :mod: `builtins `. The
141
141
global namespace is searched first. If the names are not found there, the
142
- builtins namespace is searched. The :keyword: `!global ` statement must precede
143
- all uses of the listed names.
142
+ builtins namespace is searched next. If the names are also not found in the
143
+ builtins namespace, new variables are created in the global namespace.
144
+ The global statement must precede all uses of the listed names.
144
145
145
146
The :keyword: `global ` statement has the same scope as a name binding operation
146
147
in the same block. If the nearest enclosing scope for a free variable contains
You can’t perform that action at this time.
0 commit comments