mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-08 11:20:57 +08:00
dynamic arrays in executions and instances should now work fully, some things got simplified, now it works.
This commit is contained in:
@@ -231,5 +231,5 @@ tuple({1})[0]
|
||||
tuple((1,))[0]
|
||||
|
||||
# implementation detail for lists, should not be visible
|
||||
#? []
|
||||
##? []
|
||||
list().__iterable
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
# -----------------
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user