[Zope-Checkins] CVS: ZODB/src/persistent - list.py:1.5.10.1

Jeremy Hylton jeremy at zope.com
Thu Feb 12 16:26:04 EST 2004


Update of /cvs-repository/ZODB/src/persistent
In directory cvs.zope.org:/tmp/cvs-serv30408

Modified Files:
      Tag: zope3-zodb3-devel-branch
	list.py 
Log Message:
Fix __iadd__ and __imul__.

Looks like these were fixed in persistence, but not persistent.


=== ZODB/src/persistent/list.py 1.5 => 1.5.10.1 ===
--- ZODB/src/persistent/list.py:1.5	Fri Nov 28 11:44:55 2003
+++ ZODB/src/persistent/list.py	Thu Feb 12 16:26:03 2004
@@ -53,12 +53,14 @@
         self._p_changed = 1
 
     def __iadd__(self, other):
-        self.__super_iadd(other)
+        L = self.__super_iadd(other)
         self._p_changed = 1
+        return L
 
     def __imul__(self, n):
-        self.__super_imul(n)
+        L = self.__super_imul(n)
         self._p_changed = 1
+        return L
 
     def append(self, item):
         self.__super_append(item)




More information about the Zope-Checkins mailing list