File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 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
139139global namespace, i.e. the namespace of the module containing the code block,
140140and the builtins namespace, the namespace of the module :mod: `builtins `. The
141141global 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.
144145
145146The :keyword: `global ` statement has the same scope as a name binding operation
146147in 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