tests again -> complicated working

This commit is contained in:
David Halter
2012-05-07 23:31:33 +02:00
parent bf3ec37b40
commit ff9ef84a84
3 changed files with 12 additions and 6 deletions

View File

@@ -229,7 +229,6 @@ class Executable(object):
return next(self.iterator)
print 'va', self.var_args
#print 'va2', self.var_args[0]
return iter(PushBackIterator(iterate()))
@@ -697,12 +696,10 @@ def follow_call_list(scope, call_list):
It is used to evaluate a two dimensional object, that has calls, arrays and
operators in it.
"""
print 'inpu', scope, call_list
if parsing.Array.is_type(call_list, parsing.Array.TUPLE,
parsing.Array.DICT):
# Tuples can stand just alone without any braces. These would be
# recognized as separate calls, but actually are a tuple.
print 'inpu', scope, call_list
result = follow_call(scope, call_list)
else:
result = []

View File

@@ -205,7 +205,6 @@ def complete(source, row, column, source_path):
for s in scopes:
# TODO is this reall the right way? just ignore the functions? \
# do the magic functions first? and then recheck here?
print 'scope, '
if not isinstance(s, parsing.Function):
completions += s.get_defined_names()

View File

@@ -155,5 +155,15 @@ def fu(a=1, b="", *args, **kwargs):
exe = fu(list, 1, "", c=set)
##? ['append']
exe[0].
#? ['append']
exe[0].append
#? ['real']
exe[1].real
#? ['index']
exe[2].index
#? ['upper']
exe[2][0].upper
#? ['items']
exe[3].items
#? ['union']
exe[3]['c'].union