Commits

mattip  committed 16edd04

fix, accept ndarrays as well

  • Participants
  • Parent commits 4c56cbe

Comments (0)

Files changed (1)

File pypy/module/micronumpy/strides.py

     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