[pypy-svn] r79564 - pypy/branch/fast-forward/lib_pypy/_ctypes

afa at codespeak.net afa at codespeak.net
Fri Nov 26 16:38:16 CET 2010


Author: afa
Date: Fri Nov 26 16:38:14 2010
New Revision: 79564

Modified:
   pypy/branch/fast-forward/lib_pypy/_ctypes/array.py
Log:
A typo, fortunately spotted by cpython test suite


Modified: pypy/branch/fast-forward/lib_pypy/_ctypes/array.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/_ctypes/array.py	(original)
+++ pypy/branch/fast-forward/lib_pypy/_ctypes/array.py	Fri Nov 26 16:38:14 2010
@@ -134,7 +134,7 @@
     if slicelength != len(value):
         raise ValueError("Can only assign slices of the same length")
     for i, j in enumerate(range(start, stop, step)):
-        self[j] = value[j]
+        self[j] = value[i]
 
 def array_slice_getitem(self, index):
     start, stop, step = self._get_slice_params(index)



More information about the Pypy-commit mailing list