Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r68525:dbcaa585c8d8
Date: 2013-12-20 23:35 -0500
http://bitbucket.org/pypy/pypy/changeset/dbcaa585c8d8/

Log:    this is needed

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1734,11 +1734,13 @@
 
     def _coerce(self, space, arr, ofs, dtype, w_items, shape):
         # TODO: Make sure the shape and the array match
+        from interp_dtype import W_Dtype
         if w_items is not None:
             items_w = space.fixedview(w_items)
         else:
             items_w = [None] * shape[0]
         subdtype = dtype.subdtype
+        assert isinstance(subdtype, W_Dtype)
         itemtype = subdtype.itemtype
         if len(shape) <= 1:
             for i in range(len(items_w)):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to