Skip to content

Commit bb0e747

Browse files
committed
rephrase docstring
1 parent 5f3dd2f commit bb0e747

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Lib/concurrent/futures/_base.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,9 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
586586
before being passed to a child process. This argument is only
587587
used by ProcessPoolExecutor; it is ignored by
588588
ThreadPoolExecutor.
589-
buffersize: The maximum number of results that can be buffered
590-
before being yielded. If the buffer is full, the iteration over
591-
iterables is paused until a result is yielded from the
592-
buffer.
589+
buffersize: The number of results that can be buffered before being
590+
yielded. If the buffer is full, the iteration over iterables
591+
is paused until a result is yielded from the buffer.
593592
594593
Returns:
595594
An iterator equivalent to: map(func, *iterables) but the calls may

Lib/concurrent/futures/process.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,10 +816,9 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
816816
chunksize: If greater than one, the iterables will be chopped into
817817
chunks of size chunksize and submitted to the process pool.
818818
If set to one, the items in the list will be sent one at a time.
819-
buffersize: The maximum number of result chunks that can be buffered
820-
before being yielded. If the buffer is full, the iteration over
821-
iterables is paused until a result chunk is yielded from the
822-
buffer.
819+
buffersize: The number of result chunks that can be buffered before
820+
being yielded. If the buffer is full, the iteration over iterables
821+
is paused until a result chunk is yielded from the buffer.
823822
824823
Returns:
825824
An iterator equivalent to: map(func, *iterables) but the calls may

0 commit comments

Comments
 (0)