[pypy-commit] pypy issue-2148: fix

rlamy noreply at buildbot.pypy.org
Mon Oct 5 01:25:46 CEST 2015


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: issue-2148
Changeset: r79982:8f8f4e669441
Date: 2015-10-04 22:44 +0100
http://bitbucket.org/pypy/pypy/changeset/8f8f4e669441/

Log:	fix

diff --git a/pypy/module/micronumpy/ctors.py b/pypy/module/micronumpy/ctors.py
--- a/pypy/module/micronumpy/ctors.py
+++ b/pypy/module/micronumpy/ctors.py
@@ -191,6 +191,7 @@
 def find_shape_and_elems(space, w_iterable, dtype):
     if is_scalar_like(space, w_iterable, dtype):
         return [], [w_iterable]
+    is_rec_type = dtype is not None and dtype.is_record()
     return _find_shape_and_elems(space, w_iterable, is_rec_type)
 
 def is_scalar_like(space, w_obj, dtype):


More information about the pypy-commit mailing list