[pypy-commit] pypy default: fix, accept ndarrays as well

mattip noreply at buildbot.pypy.org
Thu Aug 23 23:56:49 CEST 2012


Author: mattip <matti.picus at gmail.com>
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


More information about the pypy-commit mailing list