[New-bugs-announce] [issue24391] Better repr for threading objects

Serhiy Storchaka report at bugs.python.org
Sat Jun 6 12:21:42 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24391>
_______________________________________


More information about the New-bugs-announce mailing list