Skip to content

Commit a7de7ff

Browse files
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 fd6f6fa) Co-authored-by: Don Kirkby <[email protected]>
1 parent a12f459 commit a7de7ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
224224
An :class:`Executor` subclass that executes calls asynchronously using a pool
225225
of at most *max_workers* processes. If *max_workers* is ``None`` or not
226226
given, it will default to the number of processors on the machine.
227-
If *max_workers* is lower or equal to ``0``, then a :exc:`ValueError`
227+
If *max_workers* is less than or equal to ``0``, then a :exc:`ValueError`
228228
will be raised.
229-
On Windows, *max_workers* must be equal or lower than ``61``. If it is not
229+
On Windows, *max_workers* must be less than or equal to ``61``. If it is not
230230
then :exc:`ValueError` will be raised. If *max_workers* is ``None``, then
231231
the default chosen will be at most ``61``, even if more processors are
232232
available.
@@ -238,7 +238,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
238238
each worker process; *initargs* is a tuple of arguments passed to the
239239
initializer. Should *initializer* raise an exception, all currently
240240
pending jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`,
241-
as well any attempt to submit more jobs to the pool.
241+
as well as any attempt to submit more jobs to the pool.
242242

243243
.. versionchanged:: 3.3
244244
When one of the worker processes terminates abruptly, a

0 commit comments

Comments
 (0)