new jedi test, which is working pretty good

This commit is contained in:
David Halter
2012-08-27 11:55:04 +02:00
parent 33e5850105
commit 19b03ccbe9
2 changed files with 8 additions and 1 deletions

View File

@@ -203,6 +203,7 @@ def _check_array_additions(compare_array, module, is_list):
return result
def get_execution_parent(element, *stop_classes):
""" Used to get an Instance/Execution parent """
if isinstance(element, evaluate.Array):
stmt = element._array.parent_stmt()
else:
@@ -244,6 +245,7 @@ def _check_array_additions(compare_array, module, is_list):
evaluate.follow_statement.pop_stmt()
return res
def check_array_instances(instance):
if not settings.dynamic_arrays_instances:
return instance.var_args

View File

@@ -33,5 +33,10 @@ el = list(evaluate.get_names_for_scope())[0][1]
# TODO here should stand evaluate.Instance() and so on.
# need to understand list comprehensions
#?
##?
el = list(evaluate.get_names_for_scope())[0][1][0]
#? list()
parsing.Scope((0,0)).get_set_vars()
#?
parsing.Scope((0,0)).get_set_vars()[0]