[pypy-commit] pypy py3.5: translation issue

plan_rich pypy.commits at gmail.com
Fri Oct 14 03:13:29 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5
Changeset: r87766:4465e0a954e4
Date: 2016-10-14 09:12 +0200
http://bitbucket.org/pypy/pypy/changeset/4465e0a954e4/

Log:	translation issue

diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -354,7 +354,7 @@
         if isinstance(w_index, W_SliceObject):
             oldsize = len(self.data)
             start, stop, step, slicelength = w_index.indices4(space, oldsize)
-            sequence2 = makebytesdata_w(space, w_other)
+            sequence2 = [c for c in makebytesdata_w(space, w_other)]
             _setitem_slice_helper(space, self.data, start, step,
                                   slicelength, sequence2, empty_elem='\x00')
         else:
@@ -386,7 +386,7 @@
         if isinstance(w_other, W_BytearrayObject):
             self.data += w_other.data
         else:
-            self.data += makebytesdata_w(space, w_other)
+            self.data += [c for c in makebytesdata_w(space, w_other)]
         return self
 
     def descr_insert(self, space, w_idx, w_other):


More information about the pypy-commit mailing list