Skip to content

Commit be86459

Browse files
committed
gh-68663: clarify task definition in Pool.map docs
1 parent 00ea776 commit be86459

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,8 +2508,11 @@ with the :class:`Pool` class.
25082508
one *iterable* argument though, for multiple iterables see :meth:`starmap`).
25092509
It blocks until the result is ready.
25102510

2511-
This method chops the iterable into a number of chunks which it submits to
2512-
the process pool as separate tasks. The (approximate) size of these
2511+
This method chops the iterable into a number of chunks and submits each
2512+
chunk to the process pool as a separate task. A task may therefore
2513+
process multiple items from the iterable.
2514+
2515+
The (approximate) size of these
25132516
chunks can be specified by setting *chunksize* to a positive integer.
25142517

25152518
Note that it may cause high memory usage for very long iterables. Consider

0 commit comments

Comments
 (0)