[pypy-commit] pypy py3.5: Fix (see _cffi_backend/test)

arigo pypy.commits at gmail.com
Mon Jan 16 02:57:15 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89605:c58c4ce4b2ad
Date: 2017-01-16 08:56 +0100
http://bitbucket.org/pypy/pypy/changeset/c58c4ce4b2ad/

Log:	Fix (see _cffi_backend/test)

diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -715,8 +715,8 @@
 
     def getfulltypename(self, w_obj):
         w_type = self.type(w_obj)
-        classname = w_type.getqualname(self)
         if w_type.is_heaptype():
+            classname = w_type.getqualname(self)
             w_module = w_type.lookup("__module__")
             if w_module is not None:
                 try:
@@ -726,4 +726,6 @@
                         raise
                 else:
                     classname = u'%s.%s' % (modulename, classname)
+        else:
+            classname = w_type.name.decode('utf-8')
         return classname


More information about the pypy-commit mailing list