Commit 521c0a55 authored by Denis Bilenko's avatar Denis Bilenko

better __repr__ for RLock

parent f8f952f4
...@@ -179,10 +179,12 @@ class RLock(object): ...@@ -179,10 +179,12 @@ class RLock(object):
self._count = 0 self._count = 0
def __repr__(self): def __repr__(self):
return "<%s(%s, %d)>" % ( return "<%s at 0x%x _block=%s _count=%r _owner=%r)>" % (
self.__class__.__name__, self.__class__.__name__,
self._owner, id(self),
self._count) self._block,
self._count,
self._owner)
def acquire(self, blocking=1): def acquire(self, blocking=1):
me = getcurrent() me = getcurrent()
......
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