8000 [3.12] gh-116842: Improve test comment and fix a doctest (gh-116846) … · python/cpython@3751411 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3751411

Browse files
[3.12] gh-116842: Improve test comment and fix a doctest (gh-116846) (gh-116847)
1 parent e4ec445 commit 3751411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/itertools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ The following recipes have a more mathematical flavor:
14051405
[1, 4]
14061406

14071407
>>> # Verify faithfulness to type specific index() method behaviors.
1408-
>>> # For example, bytes and str perform subsequence searches
1408+
>>> # For example, bytes and str perform continuous-subsequence searches
14091409
>>> # that do not match the general behavior specified
14101410
>>> # in collections.abc.Sequence.index().
14111411
>>> seq = 'abracadabra'
@@ -1556,7 +1556,7 @@ The following recipes have a more mathematical flavor:
15561556
>>> list(roundrobin('abc', 'd', 'ef'))
15571557
['a', 'd', 'e', 'b', 'f', 'c']
15581558
>>> ranges = [range(5, 1000), range(4, 3000), range(0), range(3, 2000), range(2, 5000), range(1, 3500)]
1559-
>>> collections.Counter(roundrobin(ranges)) == collections.Counter(ranges)
1559+
>>> collections.Counter(roundrobin(*ranges)) == collections.Counter(chain(*ranges))
15601560
True
15611561
>>> # Verify that the inputs are consumed lazily
15621562
>>> input_iterators = list(map(iter, ['abcd', 'ef', '', 'ghijk', 'l', 'mnopqr']))

0 commit comments

Comments
 (0)
0