Skip to content

gh-133146: Add the old public get_value method to documentation and refactor code. #133301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

YvesDup
Copy link
Contributor

@YvesDup YvesDup commented May 2, 2025

  1. Update documentation of multiprocessing.Lockclass.
  2. Refactor code to mask calls to the private _semlock attribute of multiprocessing.Sempahore class.
    Updates concern multiprocessing.BoundedSempahore, multiprocessing.Condition and multiprocessing.Queue.

📚 Documentation preview 📚: https://cpython-previews--133301.org.readthedocs.build/

@YvesDup YvesDup requested a review from gpshead as a code owner May 2, 2025 14:26
@YvesDup YvesDup changed the title gh-133146: Add the older public get_value method to documantation and refactor code. gh-133146: Add the old public get_value method to documantation and refactor code. May 2, 2025
@YvesDup YvesDup changed the title gh-133146: Add the old public get_value method to documantation and refactor code. gh-133146: Add the old public get_value method to documentation and refactor code. May 2, 2025
Comment on lines +138 to +142
'''Returns current value of Semaphore.

Raises NotImplementedError on Mac OSX
because of broken sem_getvalue().
'''
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has no docstring. Should we remove this one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant