diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-07-07 14:35:02 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-07-07 14:35:02 -0500 |
commit | e55c07614b4f6d4961a2d3fc9af4cf92c2b2615c (patch) | |
tree | 6eabbaa47b0066ea2480864b78e69c645daed3da /Lib/threading.py | |
parent | bb715c3208e98a5abf245de2fcfd7e93e28614e0 (diff) | |
parent | 8eb1f397f7637f49e102198ef49e156e229b09de (diff) | |
download | cpython-e55c07614b4f6d4961a2d3fc9af4cf92c2b2615c.tar.gz |
Issue #17846: Merge with 3.4
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 34070830e7..c7c4478178 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -106,8 +106,14 @@ class _RLock: owner = _active[owner].name except KeyError: pass - return "<%s owner=%r count=%d>" % ( - self.__class__.__name__, owner, self._count) + return "<%s %s.%s object owner=%r count=%d at %s>" % ( + "locked" if self._block.locked() else "unlocked", + self.__class__.__module__, + self.__class__.__qualname__, + owner, + self._count, + hex(id(self)) + ) def acquire(self, blocking=True, timeout=-1): """Acquire a lock, blocking or non-blocking. |