You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve __repr__ string of synchronize tools in the multiprocessing module. #155092
To be consistant with representation string of threading sychronize tools and in accordance with the discussion from the #149447 PR , the missing id information must be added in the __repr__ of the following synchronization classes:
Lock, Rlock,
Semaphore, BoundedSemaphore,
Condition.
and refactoring must be performed to these 2 classes:
<threading.Semaphore at 0x10378c8a0: value=3><Semaphore(value=3)><unlocked _thread.lock object at 0x103612040><Lock(owner=None)><threading.Event at 0x10378ccc0: unset><Event at 0x10378ccc0 unset><threading.Barrier at 0x10378ccc0: waiters=0/2><multiprocessing.synchronize.Barrier at 0x10378ccc0: waiters=0/2>
Activity
YvesDup commentedon Aug 3, 2026
FYI,
asynciorepresentation string seems better to me. I will propose a PR based on this module.