Commit 37d2fe00 authored by Benjamin Peterson's avatar Benjamin Peterson

fix some py3k doc nits

parent a933e520
...@@ -295,10 +295,10 @@ loops that truncate the stream. ...@@ -295,10 +295,10 @@ loops that truncate the stream.
except IndexError: except IndexError:
pass pass
If one of the iterables is potentially infinite, then the If one of the iterables is potentially infinite, then the :func:`zip_longest`
:func:`izip_longest` function should be wrapped with something that limits function should be wrapped with something that limits the number of calls
the number of calls (for example :func:`islice` or :func:`takewhile`). If (for example :func:`islice` or :func:`takewhile`). If not specified,
not specified, *fillvalue* defaults to ``None``. *fillvalue* defaults to ``None``.
.. function:: permutations(iterable[, r]) .. function:: permutations(iterable[, r])
...@@ -590,7 +590,7 @@ which incur interpreter overhead. ...@@ -590,7 +590,7 @@ which incur interpreter overhead.
def compress(data, selectors): def compress(data, selectors):
"compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F" "compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F"
return (d for d, s in izip(data, selectors) if s) return (d for d, s in zip(data, selectors) if s)
def combinations_with_replacement(iterable, r): def combinations_with_replacement(iterable, r):
"combinations_with_replacement('ABC', 3) --> AA AB AC BB BC CC" "combinations_with_replacement('ABC', 3) --> AA AB AC BB BC CC"
......
...@@ -1433,8 +1433,8 @@ with the :class:`Pool` class. ...@@ -1433,8 +1433,8 @@ with the :class:`Pool` class.
.. method:: apply(func[, args[, kwds]]) .. method:: apply(func[, args[, kwds]])
Equivalent of the :func:`apply` builtin function. It blocks till the Call *func* with arguments *args* and keyword arguments *kwds*. It blocks
result is ready. till the result is ready.
.. method:: apply_async(func[, args[, kwds[, callback]]]) .. method:: apply_async(func[, args[, kwds[, callback]]])
...@@ -1465,7 +1465,7 @@ with the :class:`Pool` class. ...@@ -1465,7 +1465,7 @@ with the :class:`Pool` class.
.. method:: imap(func, iterable[, chunksize]) .. method:: imap(func, iterable[, chunksize])
An equivalent of :func:`itertools.imap`. An lazier version of :meth:`map`.
The *chunksize* argument is the same as the one used by the :meth:`.map` The *chunksize* argument is the same as the one used by the :meth:`.map`
method. For very long iterables using a large value for *chunksize* can method. For very long iterables using a large value for *chunksize* can
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment