Skip to content

Commit fd6f6fa

Browse files
authored
Minor wording change in concurrent.futures. (pythonGH-23194)
Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
1 parent 01c6aa4 commit fd6f6fa

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
@@ -236,9 +236,9 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
236236
An :class:`Executor` subclass that executes calls asynchronously using a pool
237237
of at most *max_workers* processes. If *max_workers* is ``None`` or not
238238
given, it will default to the number of processors on the machine.
239-
If *max_workers* is lower or equal to ``0``, then a :exc:`ValueError`
239+
If *max_workers* is less than or equal to ``0``, then a :exc:`ValueError`
240240
will be raised.
241-
On Windows, *max_workers* must be equal or lower than ``61``. If it is not
241+
On Windows, *max_workers* must be less than or equal to ``61``. If it is not
242242
then :exc:`ValueError` will be raised. If *max_workers* is ``None``, then
243243
the default chosen will be at most ``61``, even if more processors are
244244
available.
@@ -250,7 +250,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
250250
each worker process; *initargs* is a tuple of arguments passed to the
251251
initializer. Should *initializer* raise an exception, all currently
252252
pending jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`,
253-
as well any attempt to submit more jobs to the pool.
253+
as well as any attempt to submit more jobs to the pool.
254254

255255
.. versionchanged:: 3.3
256256
When one of the worker processes terminates abruptly, a

0 commit comments

Comments
 (0)