[Python-checkins] r72774 - python/trunk/Lib/_abcoll.py

raymond.hettinger python-checkins at python.org
Mon May 18 17:51:59 CEST 2009


Author: raymond.hettinger
Date: Mon May 18 17:51:59 2009
New Revision: 72774

Log:
Issue 6037: MutableSequence.__iadd__ should return self.

Modified:
   python/trunk/Lib/_abcoll.py

Modified: python/trunk/Lib/_abcoll.py
==============================================================================
--- python/trunk/Lib/_abcoll.py	(original)
+++ python/trunk/Lib/_abcoll.py	Mon May 18 17:51:59 2009
@@ -560,5 +560,6 @@
 
     def __iadd__(self, values):
         self.extend(values)
+        return self
 
 MutableSequence.register(list)


More information about the Python-checkins mailing list