dynamic arrays in executions and instances should now work fully, some things got simplified, now it works.

This commit is contained in:
David Halter
2012-08-27 11:34:37 +02:00
parent 0d9a6282e7
commit 33e5850105
7 changed files with 67 additions and 28 deletions

View File

@@ -231,5 +231,5 @@ tuple({1})[0]
tuple((1,))[0]
# implementation detail for lists, should not be visible
#? []
##? []
list().__iterable

View File

@@ -404,3 +404,17 @@ E.t(1)
e.u(1)
#? str()
E.u(1)
# -----------------
# recursions
# -----------------
def Recursion():
def recurse(self):
self.a = self.a
self.b = self.b.recurse()
#?
Recursion().a
#?
Recursion().b

View File

@@ -316,12 +316,23 @@ class C():
a[0]
return a
def class_arr(self, el):
self.a = []
self.a.append(el)
#? int()
self.a[0]
return self.a
#? int()
C().blub(1)[0]
#? float()
C().blub2(1)[0]
#? int()
C().a[0]
#? int()
C().class_arr(1)[0]
# -----------------
# array recursions
# -----------------

View File

@@ -198,6 +198,8 @@ def test_dir(completion_test_dir, thirdparty=False):
summary.append(s)
# Sorry I didn't use argparse here. It's because argparse is not in the
# stdlib in 2.5.
args = sys.argv[1:]
try:
i = args.index('--thirdparty')