Skip to content

Commit a8fc222

Browse files
committed
Improve section spacing
1 parent 654241b commit a8fc222

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/itertools.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
847847
from math import comb, isqrt, prod, sumprod
848848
from operator import getitem, is_not, itemgetter, mul, neg, truediv
849849

850+
850851
# ==== Basic one liners ====
851852

852853
def take(n, iterable):
@@ -918,6 +919,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
918919
# all_equal('4٤௪౪໔', key=int) → True
919920
return len(take(2, groupby(iterable, key))) <= 1
920921

922+
921923
# ==== Data pipelines ====
922924

923925
def unique_justseen(iterable, key=None):
@@ -1026,6 +1028,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
10261028
while True:
10271029
yield function()
10281030

1031+
10291032
# ==== Mathematical operations ====
10301033

10311034
def multinomial(*counts):
@@ -1045,6 +1048,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
10451048
# sum_of_squares([10, 20, 30]) → 1400
10461049
return sumprod(*tee(iterable))
10471050
1051+
10481052
# ==== Matrix operations ====
10491053

10501054
def reshape(matrix, columns):
@@ -1063,6 +1067,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
10631067
n = len(m2[0])
10641068
return batched(starmap(sumprod, product(m1, transpose(m2))), n)
10651069

1070+
10661071
# ==== Polynomial arithmetic ====
10671072

10681073
def convolve(signal, kernel):
@@ -1119,6 +1124,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
11191124
powers = reversed(range(1, n))
11201125
return list(map(mul, coefficients, powers))
11211126

1127+
11221128
# ==== Number theory ====
11231129

11241130
def sieve(n):

0 commit comments

Comments
 (0)