# HG changeset patch # User paulb@jeremy # Date 1161469029 -7200 # Node ID 94854885fadf625140cbe6fa04c5df0c68124c83 # Parent cad44e78cbbe7cb027f6915501afa35409bd1395 Added __iadd__ method to the list class. diff -r cad44e78cbbe -r 94854885fadf lib/builtins.py --- a/lib/builtins.py Sun Oct 22 00:16:27 2006 +0200 +++ b/lib/builtins.py Sun Oct 22 00:17:09 2006 +0200 @@ -582,6 +582,11 @@ result.append(value) return result + def __iadd__(self, other): + for value in other: + self.append(value) + return self + def __str__(self): output = ["["] n = self