2006-10-22 | paulb | raw files shortlog changelog graph | Added __iadd__ method to the list class. | |
lib/builtins.py (file) |
1.1 --- a/lib/builtins.py Sun Oct 22 00:16:27 2006 +0200 1.2 +++ b/lib/builtins.py Sun Oct 22 00:17:09 2006 +0200 1.3 @@ -582,6 +582,11 @@ 1.4 result.append(value) 1.5 return result 1.6 1.7 + def __iadd__(self, other): 1.8 + for value in other: 1.9 + self.append(value) 1.10 + return self 1.11 + 1.12 def __str__(self): 1.13 output = ["["] 1.14 n = self