[pypy-commit] pypy py3k-memoryview: Fix translation.

Manuel Jacob noreply at buildbot.pypy.org
Sat May 24 12:09:06 CEST 2014


Author: Manuel Jacob
Branch: py3k-memoryview
Changeset: r71694:0dc075198a2c
Date: 2014-05-24 12:08 +0200
http://bitbucket.org/pypy/pypy/changeset/0dc075198a2c/

Log:	Fix translation.

diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -62,10 +62,12 @@
 
 
 def descr_itemsize(space, self):
+    assert isinstance(self, W_ArrayBase)
     return space.wrap(self.itemsize)
 
 
 def descr_typecode(space, self):
+    assert isinstance(self, W_ArrayBase)
     return space.wrap(self.typecode)
 
 arr_eq_driver = jit.JitDriver(name='array_eq_driver', greens=['comp_func'],


More information about the pypy-commit mailing list