[issue21137] Better repr for threading.Lock()

Antoine Pitrou report at bugs.python.org
Tue Apr 29 01:01:56 CEST 2014


Antoine Pitrou added the comment:

> The repr of threading._RLock contains owner and count, but not
> lock/unlock status. The repr of locks from _dummy_thread also should
> contain lock/unlock status. And it would be nice to have the
> open/closed status in the repr of other synchronization primitives:
> Condition, Semaphore, etc. 

I think it's ok to stay focussed and restrict this issue to threading.Lock (and perhaps RLock).

Berker, do you want to provide an updated patch?

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21137>
_______________________________________


More information about the Python-bugs-list mailing list