diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-11-08 09:45:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 09:45:25 (GMT) |
commit | a7de7ffe32801f1f869734993d2ca4ba09d21dd7 (patch) | |
tree | f0e62c517568c5433275b0f2712b0d1047e63521 | |
parent | a12f459ec2a31b96a21c735eb18f3d0fd19e99ff (diff) | |
download | cpython-a7de7ffe32801f1f869734993d2ca4ba09d21dd7.zip cpython-a7de7ffe32801f1f869734993d2ca4ba09d21dd7.tar.gz cpython-a7de7ffe32801f1f869734993d2ca4ba09d21dd7.tar.bz2 |
Minor wording change in concurrent.futures. (GH-23194)
Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
(cherry picked from commit fd6f6fa403789c8877b1099cc6fcc437d2e54634)
Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
-rw-r--r-- | Doc/library/concurrent.futures.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index 88c1d23..54c9c2e 100644 --- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -224,9 +224,9 @@ to a :class:`ProcessPoolExecutor` will result in deadlock. An :class:`Executor` subclass that executes calls asynchronously using a pool of at most *max_workers* processes. If *max_workers* is ``None`` or not given, it will default to the number of processors on the machine. - If *max_workers* is lower or equal to ``0``, then a :exc:`ValueError` + If *max_workers* is less than or equal to ``0``, then a :exc:`ValueError` will be raised. - On Windows, *max_workers* must be equal or lower than ``61``. If it is not + On Windows, *max_workers* must be less than or equal to ``61``. If it is not then :exc:`ValueError` will be raised. If *max_workers* is ``None``, then the default chosen will be at most ``61``, even if more processors are available. @@ -238,7 +238,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock. each worker process; *initargs* is a tuple of arguments passed to the initializer. Should *initializer* raise an exception, all currently pending jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`, - as well any attempt to submit more jobs to the pool. + as well as any attempt to submit more jobs to the pool. .. versionchanged:: 3.3 When one of the worker processes terminates abruptly, a |