From: Stefan Behnel Date: Thu, 25 Nov 2010 22:12:05 +0000 (+0100) Subject: output hex numbers for node ids in Node.dump() as in tracebacks etc. X-Git-Tag: 0.14.alpha0~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd73bf6127409d07c5da855b28e05889311e41ce;p=cython.git output hex numbers for node ids in Node.dump() as in tracebacks etc. --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index fbadf7f3..cbc4533b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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):