Author: mattip <[email protected]>
Branch: dtypes-compatability
Changeset: r78034:3eda966e35cc
Date: 2015-06-11 08:18 +0300
http://bitbucket.org/pypy/pypy/changeset/3eda966e35cc/

Log:    fix translation

diff --git a/pypy/module/micronumpy/descriptor.py 
b/pypy/module/micronumpy/descriptor.py
--- a/pypy/module/micronumpy/descriptor.py
+++ b/pypy/module/micronumpy/descriptor.py
@@ -176,7 +176,10 @@
         return dtype
 
     def get_name(self):
-        name = self.w_box_type.name
+        from pypy.objspace.std.typeobject import W_TypeObject
+        w_box_type = self.w_box_type
+        assert isinstance(w_box_type, W_TypeObject)
+        name = w_box_type.getname(self.itemtype.space)
         if name.startswith('numpy.'):
             name = name[6:]
         if name.endswith('_'):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to