Skip to content

gh-155092: Improve __repr__ string of all synchronize tools in multiprocessing module. - #155593

Open
YvesDup wants to merge 6 commits into
python:mainfrom
YvesDup:repr-synchronize-tools-multiprocessing
Open

YvesDup wants to merge 6 commits into
python:mainfrom
YvesDup:repr-synchronize-tools-multiprocessing

Conversation

@YvesDup

@YvesDup YvesDup commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

__repr__ of multiprocessing synchronize tools should include information about id (in hex form).
All __repr__ are reviewed, results are:

  • Add __repr__ for Barrier, update __repr__ for all other synchronize tools.
  • Add tests for [Bounded]Semaphore, Barrier and Condition,
  • Update tests for [R]Lock and Event.

These updates assume that the #155540 PR has been applied

- Add tests for [BoundedSemaphore], Barrier and Condition
- Update test for [R]Lock and Event
@YvesDup
YvesDup requested a review from gpshead as a code owner August 11, 2026 21:07
@YvesDup YvesDup changed the title initial commits gh-155092: Improve __repr__ string of all synchronize tools in multiprocessing module. Aug 11, 2026
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant