Commit fd73bf61 authored by Stefan Behnel's avatar Stefan Behnel

output hex numbers for node ids in Node.dump() as in tracebacks etc.

parent 5ecdb4d8
...@@ -241,7 +241,7 @@ class Node(object): ...@@ -241,7 +241,7 @@ class Node(object):
if encountered is None: if encountered is None:
encountered = set() encountered = set()
if id(self) in encountered: 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)) encountered.add(id(self))
def dump_child(x, level): def dump_child(x, level):
......
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