[pypy-commit] pypy py3k: Fix slicing.

Manuel Jacob noreply at buildbot.pypy.org
Sun Feb 17 23:07:35 CET 2013


Author: Manuel Jacob
Branch: py3k
Changeset: r61372:ce51a8cf30f4
Date: 2013-02-17 03:34 +0100
http://bitbucket.org/pypy/pypy/changeset/ce51a8cf30f4/

Log:	Fix slicing.

diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py
--- a/lib_pypy/_ctypes/array.py
+++ b/lib_pypy/_ctypes/array.py
@@ -144,7 +144,7 @@
     l = [self[i] for i in range(start, stop, step)]
     letter = getattr(self._type_, '_type_', None)
     if letter == 'c':
-        return b"".join(l)
+        return bytes(l)
     if letter == 'u':
         return "".join(l)
     return l


More information about the pypy-commit mailing list