From fd73bf6127409d07c5da855b28e05889311e41ce Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 25 Nov 2010 23:12:05 +0100 Subject: [PATCH] output hex numbers for node ids in Node.dump() as in tracebacks etc. --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2