Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37d2fe0

Browse files
committed
fix some py3k doc nits
1 parent a933e52 commit 37d2fe0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/itertools.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ loops that truncate the stream.
295295
except IndexError:
296296
pass
297297

298-
If one of the iterables is potentially infinite, then the
299-
:func:`izip_longest` function should be wrapped with something that limits
300-
the number of calls (for example :func:`islice` or :func:`takewhile`). If
301-
not specified, *fillvalue* defaults to ``None``.
298+
If one of the iterables is potentially infinite, then the :func:`zip_longest`
299+
function should be wrapped with something that limits the number of calls
300+
(for example :func:`islice` or :func:`takewhile`). If not specified,
301+
*fillvalue* defaults to ``None``.
302302

303303

304304
.. function:: permutations(iterable[, r])
@@ -590,7 +590,7 @@ which incur interpreter overhead.
590590

591591
def compress(data, selectors):
592592
"compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F"
593-
return (d for d, s in izip(data, selectors) if s)
593+
return (d for d, s in zip(data, selectors) if s)
594594

595595
def combinations_with_replacement(iterable, r):
596596
"combinations_with_replacement('ABC', 3) --> AA AB AC BB BC CC"

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,8 @@ with the :class:`Pool` class.
14331433

14341434
.. method:: apply(func[, args[, kwds]])
14351435

1436-
Equivalent of the :func:`apply` builtin function. It blocks till the
1437-
result is ready.
1436+
Call *func* with arguments *args* and keyword arguments *kwds*. It blocks
1437+
till the result is ready.
14381438

14391439
.. method:: apply_async(func[, args[, kwds[, callback]]])
14401440

@@ -1465,7 +1465,7 @@ with the :class:`Pool` class.
14651465

14661466
.. method:: imap(func, iterable[, chunksize])
14671467

1468-
An equivalent of :func:`itertools.imap`.
1468+
An lazier version of :meth:`map`.
14691469

14701470
The *chunksize* argument is the same as the one used by the :meth:`.map`
14711471
method. For very long iterables using a large value for *chunksize* can

0 commit comments

Comments
 (0)