Read about our upcoming Code of Conduct on this issue

Commit eb7e4f9e authored by Armin Rigo's avatar Armin Rigo
Browse files

By default, use for the RPython-level 'str(instance)' a different

"address" number which corresponds to the id.  That's needed to
debug some kind of problems.
parent c57ac1c3539e
......@@ -585,7 +585,11 @@ class InstanceRepr(AbstractInstanceRepr):
if not i:
return rstr.null_str
instance = cast_pointer(OBJECTPTR, i)
uid = r_uint(cast_ptr_to_int(i))
# Two choices: the first gives a fast answer but it can change
# (typically only once) during the life of the object.
#uid = r_uint(cast_ptr_to_int(i))
uid = llop.gc_id(lltype.Unsigned, i)
nameLen = len(
nameString = rstr.mallocstr(nameLen-1)
i = 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment