Author: Benjamin Peterson <[email protected]>
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,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to