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

Skip to content

Commit 41e844a

Browse files
authored
gh-116842: Improve test comment and fix a doctest (gh-116846)
1 parent 1904f0a commit 41e844a

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
@@ -1417,7 +1417,7 @@ The following recipes have a more mathematical flavor:
14171417
[1, 4]
14181418

14191419
>>> # Verify faithfulness to type specific index() method behaviors.
1420-
>>> # For example, bytes and str perform subsequence searches
1420+
>>> # For example, bytes and str perform continuous-subsequence searches
14211421
>>> # that do not match the general behavior specified
14221422
>>> # in collections.abc.Sequence.index().
14231423
>>> seq = 'abracadabra'
@@ -1568,7 +1568,7 @@ The following recipes have a more mathematical flavor:
15681568
>>> list(roundrobin('abc', 'd', 'ef'))
15691569
['a', 'd', 'e', 'b', 'f', 'c']
15701570
>>> ranges = [range(5, 1000), range(4, 3000), range(0), range(3, 2000), range(2, 5000), range(1, 3500)]
1571-
>>> collections.Counter(roundrobin(ranges)) == collections.Counter(ranges)
1571+
>>> collections.Counter(roundrobin(*ranges)) == collections.Counter(chain(*ranges))
15721572
True
15731573
>>> # Verify that the inputs are consumed lazily
15741574
>>> input_iterators = list(map(iter, ['abcd', 'ef', '', 'ghijk', 'l', 'mnopqr']))

0 commit comments

Comments
 (0)
0