[pypy-commit] pypy value-profiling: (cfbolz, arigo): grumble grumble

cfbolz noreply at buildbot.pypy.org
Tue Aug 11 16:41:10 CEST 2015


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: value-profiling
Changeset: r78900:3b5a634dfc67
Date: 2015-08-11 16:40 +0200
http://bitbucket.org/pypy/pypy/changeset/3b5a634dfc67/

Log:	(cfbolz, arigo): grumble grumble

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -297,7 +297,7 @@
         self.back = back
         self._size_estimate = self.length() * NUM_DIGITS_POW2
         self.ever_mutated = False
-        self.init_valueprof('%s.%s' % (back.terminator.w_cls.name, selector[0]))
+        self.init_valueprof('%s.%s' % (back.terminator.w_cls.name if back.terminator.w_cls else '???', selector[0]))
 
     # ____________________________________________________________
     # methods for ValueProf mixin


More information about the pypy-commit mailing list