Globals should be looked up with the same priority as other defined nodes.
This commit is contained in:
1 parent
3c9aa9ef25
commit
c9a64bd1d3
3 files changed
+36
-16
No files matched your search
@@ -162,6 +162,16 @@ def funct2():
|
||||
global_dict_var
|
||||
|
||||
|
||||
global_var_predefined = None
|
||||
|
||||
def init_global_var_predefined():
|
||||
global global_var_predefined
|
||||
if global_var_predefined is None:
|
||||
global_var_predefined = 3
|
||||
|
||||
#? int() None
|
||||
global_var_predefined
|
||||
|
||||
# -----------------
|
||||
# within docstrs
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user