+=, |=, etc. operators have better support now

This commit is contained in:
David Halter
2012-08-30 00:29:04 +02:00
parent a33160eb25
commit 9c9f17a2b7
2 changed files with 28 additions and 3 deletions

View File

@@ -223,6 +223,25 @@ tuple(lst)[0]
#?
iter(lst)[0]
# -----------------
# complex including +=
# -----------------
class C(): pass
class D(): pass
class E(): pass
lst = [1]
lst.append(1.0)
lst += [C]
s = set(lst)
s.add("")
s += [D]
lst = list(s)
lst.append({})
lst += [E]
##? dict() int() float() str() C D E
lst[0]
# -----------------
# functions
# -----------------