[pypy-commit] pypy numpy-dtype-alt: force arrays to be BaseArray

gutworth noreply at buildbot.pypy.org
Fri Aug 19 02:02:30 CEST 2011


Author: Benjamin Peterson <benjamin at python.org>
Branch: numpy-dtype-alt
Changeset: r46623:abcb1e00e608
Date: 2011-08-18 19:06 -0500
http://bitbucket.org/pypy/pypy/changeset/abcb1e00e608/

Log:	force arrays to be BaseArray

diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -261,6 +261,7 @@
                 if (concrete.get_root_storage() ==
                     w_value.get_concrete().get_root_storage()):
                     w_value = space.call_function(space.gettypefor(BaseArray), w_value)
+                    assert isinstance(w_value, BaseArray)
             else:
                 w_value = convert_to_array(space, w_value)
             concrete.setslice(space, start, stop, step,


More information about the pypy-commit mailing list