list.extend / set.update works now

This commit is contained in:
David Halter
2012-08-14 15:00:31 +02:00
parent 76e6b1f37c
commit 692b85cfb2
2 changed files with 9 additions and 4 deletions

View File

@@ -162,9 +162,14 @@ arr.extend([1,2,3])
arr.extend([])
arr.extend("") # should ignore
##? float() int()
arr[0]
#? float() int()
arr[100]
a = set(arr)
a.update(list(["", 1]))
#? float() int() str()
list(a)[0]
# -----------------
# set/list initialized as functions
# -----------------