From: <pj...@us...> - 2008-12-08 19:44:17
|
Revision: 5722 http://jython.svn.sourceforge.net/jython/?rev=5722&view=rev Author: pjenvey Date: 2008-12-08 19:44:12 +0000 (Mon, 08 Dec 2008) Log Message: ----------- use hex idstrs (without any padding) to more closely resemble CPython Modified Paths: -------------- trunk/jython/src/org/python/core/IdImpl.java Modified: trunk/jython/src/org/python/core/IdImpl.java =================================================================== --- trunk/jython/src/org/python/core/IdImpl.java 2008-12-07 18:57:27 UTC (rev 5721) +++ trunk/jython/src/org/python/core/IdImpl.java 2008-12-08 19:44:12 UTC (rev 5722) @@ -72,10 +72,8 @@ } } - // XXX maybe should display both this id and identityHashCode - // XXX preserve the old "at ###" style? public String idstr(PyObject o) { - return Long.toString(id(o)); + return String.format("0x%x", id(o)); } public synchronized long java_obj_id(Object o) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |