New submission from Serhiy Storchaka: Proposed patch adds makes reprs of threading objects Semaphore, BoundedSemaphore, Event, and Barrier expose their public states. This will help for debugging.
Examples: <Semaphore: 10 at 0xb710ec8c> <BoundedSemaphore: 7/10 at 0xb6ff1d6c> <unset Event at 0xb710ec8c> <set Event at 0xb710ec8c> <Barrier: 0/10 at 0xb6ff1d6c> <Barrier: 3/10 at 0xb6ff1d6c> <broken Barrier: 3/10 at 0xb6ff1d6c> ---------- components: Library (Lib) messages: 244896 nosy: berker.peksag, brett.cannon, pitrou, rhettinger, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Better repr for threading objects type: enhancement versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24391> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com