[pypy-commit] pypy dtypes-compatability: fix translation
mattip
noreply at buildbot.pypy.org
Thu Jun 11 23:16:54 CEST 2015
Author: mattip <matti.picus at gmail.com>
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('_'):
More information about the pypy-commit
mailing list