1
0
forked from VimPlug/jedi

dynamic arrays are now working pretty good

This commit is contained in:
David Halter
2012-08-09 16:03:28 +02:00
parent c6f76a15ff
commit ae60bce836
6 changed files with 70 additions and 25 deletions

View File

@@ -95,6 +95,7 @@ for a in [1,2]:
arr.append(a);
arr.append # should not cause an exception
arr.append() # should not cause an exception
#? int()
arr[10]
@@ -110,10 +111,48 @@ arr[10].index()
arr = [""]
arr.insert(0, 1.0)
# on exception due to this, please!
arr.insert(0)
arr.insert()
#? float() str()
arr[10]
for a in arr:
#? float() str()
a
for a in list(arr):
#? float() str()
a
for a in set(arr):
#? float() str()
a
# -----------------
# set.append
# set.add
# -----------------
st = {1.0}
for a in [1,2]:
st.add(a);
st.add # should not cause an exception
st.add()
for s in st:
#? float() int()
s
# -----------------
# list.extend / set.update
# -----------------
arr = [1.0]
arr.extend([1,2,3])
arr.extend([])
arr.extend("") # should ignore
##? float() int()
arr[0]