-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-17140: Document multiprocessing's ThreadPool #23812
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. The only comment I have is that it seems strange to place ThreadPool
under the Process Pools
section, though I understand that it makes sense since it's a subclass of Pool
. Maybe we can create a Thread Pools
subsection for it. What do you think?
I almost did that, and don't mind changing it to be that way if you prefer. Would you like the new section directly below the "Process Pools" section? I also considered putting it in the "The :mod: |
Hmm I think, I'll wait and see what the core dev who reviews this prefers. Thanks for working on this :). |
a2bd609
to
dc97d38
Compare
@pablogsal OK, I've force-pushed a new commit that yanks it down into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I will leave some days in case Antoine has time to review this before landing in case he has some new insights or he wants some changes.
dc97d38
to
0f1dca8
Compare
I just made one final change - I had the note about preferring |
Up until now the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`.
0f1dca8
to
351ccc1
Compare
One more force push - I noticed a missing word after re-reading this. |
Note the there is no need for force pushes: the commits will be squashed and the core Dev merging will write the final commit anyway. |
This is fine with me. Thanks for reviewing @pablogsal ! |
Thanks @godlygeek for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8, 3.9. |
GH-23834 is a backport of this pull request to the 3.9 branch. |
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
GH-23835 is a backport of this pull request to the 3.8 branch. |
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
GH-23836 is a backport of this pull request to the 3.7 branch. |
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
…-23835) Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf2) Co-authored-by: Matt Wozniski <[email protected]>
Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`.
Up until now the
multiprocessing.pool.ThreadPool
class has goneundocumented, despite being a public class in multiprocessing that is
included in
multiprocessing.pool.__all__
.https://bugs.python.org/issue17140