[pypy-commit] pypy py3.3: fix translation: uid is based on id (not rpython), we need to use getaddrstring

pjenvey noreply at buildbot.pypy.org
Sun Jul 27 22:04:45 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3.3
Changeset: r72578:6f49b270e66a
Date: 2014-07-27 13:03 -0700
http://bitbucket.org/pypy/pypy/changeset/6f49b270e66a/

Log:	fix translation: uid is based on id (not rpython), we need to use
	getaddrstring instead

diff --git a/pypy/interpreter/nestedscope.py b/pypy/interpreter/nestedscope.py
--- a/pypy/interpreter/nestedscope.py
+++ b/pypy/interpreter/nestedscope.py
@@ -75,8 +75,9 @@
         if self.w_value is None:
             content = "empty"
         else:
-            content = "%s object at 0x%x" % (space.type(self.w_value).name, uid(self.w_value))
-        s = "<cell at 0x%x: %s>" % (uid(self), content)
+            content = "%s object at 0x%s" % (space.type(self.w_value).name,
+                                             self.w_value.getaddrstring(space))
+        s = "<cell at 0x%s: %s>" % (self.getaddrstring(space), content)
         return space.wrap(s.decode('utf-8'))
 
     def descr__cell_contents(self, space):


More information about the pypy-commit mailing list