Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r68517:2607be88f864
Date: 2013-12-20 15:38 -0500
http://bitbucket.org/pypy/pypy/changeset/2607be88f864/

Log:    fix translation

diff --git a/pypy/module/micronumpy/arrayimpl/scalar.py 
b/pypy/module/micronumpy/arrayimpl/scalar.py
--- a/pypy/module/micronumpy/arrayimpl/scalar.py
+++ b/pypy/module/micronumpy/arrayimpl/scalar.py
@@ -133,7 +133,9 @@
                 return self.get_scalar_value()
         elif space.isinstance_w(w_idx, space.w_str):
             if self.dtype.is_record_type():
-                return self.value.descr_getitem(space, 
w_idx).descr_ravel(space)
+                w_val = self.value.descr_getitem(space, w_idx)
+                assert isinstance(w_val, W_GenericBox)
+                return w_val.descr_ravel(space)
         elif space.is_none(w_idx):
             new_shape = [1]
             arr = W_NDimArray.from_shape(space, new_shape, self.dtype)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to