output hex numbers for node ids in Node.dump() as in tracebacks etc.
authorStefan Behnel <scoder@users.berlios.de>
Thu, 25 Nov 2010 22:12:05 +0000 (23:12 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 25 Nov 2010 22:12:05 +0000 (23:12 +0100)
Cython/Compiler/Nodes.py

index fbadf7f3cfe0541211be8b9e1073aeefac64d412..cbc4533bd639cb09d0973e1fc6f53d631736df01 100644 (file)
@@ -241,7 +241,7 @@ class Node(object):
         if encountered is None:
             encountered = set()
         if id(self) in encountered:
-            return "<%s (%d) -- already output>" % (self.__class__.__name__, id(self))
+            return "<%s (0x%x) -- already output>" % (self.__class__.__name__, id(self))
         encountered.add(id(self))
         
         def dump_child(x, level):