Fix an issue with global stmts. They caused recursionerrors when used wrong. Fixes #610.
This commit is contained in:
1 parent
9eee0d6635
commit
2776af3db5
4 files changed
+44
-20
No files matched your search
@@ -140,7 +140,7 @@ class Evaluator(object):
|
||||
scopes = f.scopes(search_global)
|
||||
if is_goto:
|
||||
return f.filter_name(scopes)
|
||||
return f.find(scopes, search_global)
|
||||
return f.find(scopes, attribute_lookup=not search_global)
|
||||
|
||||
#@memoize_default(default=[], evaluator_is_first_arg=True)
|
||||
#@recursion.recursion_decorator
|
||||
|
||||
Reference in new issue
Block a user