Fix most issues with dynamic arrays
This commit is contained in:
1 parent
a352fc8595
commit
0a67b387c6
5 files changed
+21
-18
No files matched your search
@@ -55,9 +55,10 @@ list(arr)[10]
|
||||
arr = [1.0]
|
||||
arr.extend([1,2,3])
|
||||
arr.extend([])
|
||||
arr.extend("") # should ignore
|
||||
arr.extend("")
|
||||
arr.extend(list) # should ignore
|
||||
|
||||
#? float() int()
|
||||
#? float() int() str()
|
||||
arr[100]
|
||||
|
||||
a = set(arr)
|
||||
@@ -94,7 +95,7 @@ arr2[0]
|
||||
lst = [1]
|
||||
lst.append(1.0)
|
||||
s = set(lst)
|
||||
s.add("")
|
||||
s.add("ahh")
|
||||
lst = list(s)
|
||||
lst.append({})
|
||||
|
||||
|
||||
Reference in new issue
Block a user