Skip to content
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

Fix typos in multiprocessing module documentation. #93472

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

Conversation

oda-gitso
Copy link
Contributor

@oda-gitso oda-gitso commented Jun 3, 2022

While reading through the multiprocessing module documentation, I identified a few typos / grammatical issues.

Given that this relates only to minor typos, I don't think this needs an issue. Please correct me if I am wrong.

@bedevere-bot bedevere-bot added docs awaiting review labels Jun 3, 2022
@AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Jun 5, 2022

You don't need NEWS, please delete the file.

A

Copy link
Member

@AA-Turner AA-Turner left a comment

Looks good, thanks!

On line 1709 there's a directive error -- it should be .. versionchanged:: 3.11 (double colon). Please could you update that? (@JulienPalard out of curiosity do we run sphinx-lint on regular docs PRs? Would this have been caught?)

   .. versionchanged: 3.11
      Added the *shutdown_timeout* parameter.

A

@@ -2198,10 +2198,10 @@ with the :class:`Pool` class.
(see :meth:`object.__del__` for more information).

.. versionadded:: 3.2
*maxtasksperchild*
*maxtasksperchild*.
Copy link
Member

@AA-Turner AA-Turner Jun 5, 2022

Choose a reason for hiding this comment

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

Adding a full stop here seems odd, as it is just noting the name of the parameter that was added. But perhaps it is better style?

Copy link
Contributor Author

@oda-gitso oda-gitso Jun 5, 2022

Choose a reason for hiding this comment

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

17 out of the 19 occurrences of "New in version" in the docs for this module is followed by a space and either "x.x." or "x.x: <some text>." where "x" is some number. I suggest adding a period for these other two occurrences so that there is consistency. I am happy to delete the suggested periods if you would like me to.

Copy link
Member

@AA-Turner AA-Turner Jun 5, 2022

Choose a reason for hiding this comment

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

The comment was more me wondering aloud, please keep as-is.

A

@@ -2918,12 +2918,12 @@ Beware of replacing :data:`sys.stdin` with a "file like object"
self._cache = []
return self._cache

For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`
For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`.
Copy link
Member

@AA-Turner AA-Turner Jun 5, 2022

Choose a reason for hiding this comment

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

You could update these to the GitHub numbers and the :gh: role.

Copy link
Contributor Author

@oda-gitso oda-gitso Jun 5, 2022

Choose a reason for hiding this comment

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

Sure, I have updated line 2921. Do the changes look okay? Thanks!

@AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Jun 5, 2022

Perhaps don't update the incorrect directive in this PR (please open a new PR for that), as the other fixes should be backported.

A

@oda-gitso
Copy link
Contributor Author

@oda-gitso oda-gitso commented Jun 5, 2022

@AA-Turner
Thanks for taking the time to review the suggested changes. I would be happy to open a new PR to fix the incorrect directive.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Looks good, thanks!

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.

None yet

5 participants