cpython: 613314c3f9ed (original) (raw)

--- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -97,7 +97,7 @@ loops that truncate the stream. :class:~fractions.Fraction.) If the input iterable is empty, the output iterable will also be empty.

def accumulate(iterable, func=operator.add): 'Return running totals' @@ -156,7 +156,7 @@ loops that truncate the stream. Make an iterator that returns elements from the first iterable until it is exhausted, then proceeds to the next iterable, until all of the iterables are exhausted. Used for treating consecutive sequences as a single sequence.

@@ -189,7 +189,7 @@ loops that truncate the stream. value. So if the input elements are unique, there will be no repeat values in each combination.

@@ -238,7 +238,7 @@ loops that truncate the stream. value. So if the input elements are unique, the generated combinations will also be unique.

@@ -278,7 +278,7 @@ loops that truncate the stream. Make an iterator that filters elements from data returning only those that have a corresponding element in selectors that evaluates to True. Stops when either the data or selectors iterables has been exhausted.

@@ -291,7 +291,7 @@ loops that truncate the stream. Make an iterator that returns evenly spaced values starting with number start. Often used as an argument to :func:map to generate consecutive data points.

@@ -312,7 +312,7 @@ loops that truncate the stream. Make an iterator returning elements from the iterable and saving a copy of each. When the iterable is exhausted, return elements from the saved copy. Repeats

@@ -333,7 +333,7 @@ loops that truncate the stream. Make an iterator that drops elements from the iterable as long as the predicate is true; afterwards, returns every element. Note, the iterator does not produce any output until the predicate first becomes false, so it may have a lengthy

@@ -349,7 +349,7 @@ loops that truncate the stream. Make an iterator that filters elements from iterable returning only those for which the predicate is False. If predicate is None, return the items

@@ -386,7 +386,7 @@ loops that truncate the stream. groups.append(list(g)) # Store group iterator as a list uniquekeys.append(k)

@@ -426,7 +426,7 @@ loops that truncate the stream. specified position. Unlike regular slicing, :func:islice does not support negative values for start, stop, or step. Can be used to extract related fields from data where the internal structure has been flattened (for example, a

@@ -464,7 +464,7 @@ loops that truncate the stream. value. So if the input elements are unique, there will be no repeat values in each permutation.

@@ -510,7 +510,7 @@ loops that truncate the stream. Cartesian product of input iterables.

@@ -541,7 +541,9 @@ loops that truncate the stream. Make an iterator that returns object over and over again. Runs indefinitely unless the times argument is specified. Used as argument to :func:map for invariant parameters to the called function. Also used with :func:zip to

@@ -564,7 +566,7 @@ loops that truncate the stream. the iterable. Used instead of :func:map when argument parameters are already grouped in tuples from a single iterable (the data has been "pre-zipped"). The difference between :func:map and :func:starmap parallels the distinction

@@ -575,7 +577,7 @@ loops that truncate the stream. .. function:: takewhile(predicate, iterable) Make an iterator that returns elements from the iterable as long as the

@@ -588,7 +590,7 @@ loops that truncate the stream. .. function:: tee(iterable, n=2)

@@ -619,7 +621,7 @@ loops that truncate the stream. Make an iterator that aggregates elements from each of the iterables. If the iterables are of uneven length, missing values are filled-in with fillvalue.

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -1303,6 +1303,7 @@ Ralf Schmitt Michael Schneider Peter Schneider-Kamp Arvin Schnell +Nofar Schnider Scott Schram Robin Schreiber Chad J. Schroeder