Author: mattip <[email protected]>
Branch:
Changeset: r56832:16edd048590b
Date: 2012-08-24 00:52 +0300
http://bitbucket.org/pypy/pypy/changeset/16edd048590b/
Log: fix, accept ndarrays as well
diff --git a/pypy/module/micronumpy/strides.py
b/pypy/module/micronumpy/strides.py
--- a/pypy/module/micronumpy/strides.py
+++ b/pypy/module/micronumpy/strides.py
@@ -51,6 +51,7 @@
if (is_rec_type and space.isinstance_w(w_elem, space.w_tuple)):
return True
if (space.isinstance_w(w_elem, space.w_tuple) or
+ hasattr(w_elem, 'shape') or
space.isinstance_w(w_elem, space.w_list)):
return False
return True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit