[pypy-svn] r14688 - pypy/dist/pypy/objspace/std

ac at codespeak.net ac at codespeak.net
Fri Jul 15 11:37:22 CEST 2005


Author: ac
Date: Fri Jul 15 11:37:22 2005
New Revision: 14688

Modified:
   pypy/dist/pypy/objspace/std/listobject.py
Log:
Oops. Last fix needed a more complex solution.

Modified: pypy/dist/pypy/objspace/std/listobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listobject.py	(original)
+++ pypy/dist/pypy/objspace/std/listobject.py	Fri Jul 15 11:37:22 2005
@@ -337,7 +337,9 @@
             # Always copy starting from the right to avoid
             # having to make a shallow copy in the case where
             # the source and destination lists are the same list.
-            r.reverse()
+            for i in range(len2 - 1, -1, -1):
+                items[start+i*step] = sequence2[i]
+            return space.w_None
         else:
             # Make a shallow copy to more easily handle the reversal case
             sequence2 = list(sequence2)



More information about the Pypy-commit mailing list