Skip to content

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.
    The multiprocessing.BoundedSempahore, multiprocessing.Condition and multiprocessing.Queue classes will update.

📚 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 ?

@YvesDup
Copy link
Contributor Author

YvesDup commented Jun 9, 2025

Why this method is undocumented ?
See here #84974

Updated: I only suggest to refactor code

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