Commit b5659e15 authored by Vincent Pelletier's avatar Vincent Pelletier

Display instance id in Node.__repr__ .

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2043 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 743f14c4
......@@ -116,11 +116,12 @@ class Node(object):
return self._connection is not None and self._uuid is not None
def __repr__(self):
return '<%s(uuid=%s, address=%s, state=%s)>' % (
return '<%s(uuid=%s, address=%s, state=%s) at %x>' % (
self.__class__.__name__,
dump(self._uuid),
self._address,
self._state,
id(self),
)
def isMaster(self):
......
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