Fix an issue with global stmts. They caused recursionerrors when used wrong. Fixes #610.

This commit is contained in:
Dave Halter
2016-07-18 19:23:08 +02:00
parent 9eee0d6635
commit 2776af3db5
4 changed files with 44 additions and 20 deletions

View File

@@ -165,6 +165,17 @@ def global_define():
#? int()
global_var_in_func
def funct1():
# From issue #610
global global_dict_var
global_dict_var = dict()
def funct2():
global global_dict_var
#? dict()
global_dict_var
# -----------------
# within docstrs
# -----------------