mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixup docstrings for merge().
This commit is contained in:
parent
382abeff0f
commit
cbac8ce5b0
2 changed files with 4 additions and 4 deletions
|
|
@ -312,8 +312,8 @@ def merge(*iterables):
|
|||
'''Merge multiple sorted inputs into a single sorted output.
|
||||
|
||||
Similar to sorted(itertools.chain(*iterables)) but returns an iterable,
|
||||
does not pull the data into memory all at once, and reduces the number
|
||||
of comparisons by assuming that each of the input streams is already sorted.
|
||||
does not pull the data into memory all at once, and assumes that each of
|
||||
the input streams is already sorted (smallest to largest).
|
||||
|
||||
>>> list(merge([1,3,5,7], [0,2,4,8], [5,10,15,20], [], [25]))
|
||||
[0, 1, 2, 3, 4, 5, 5, 7, 8, 10, 15, 20, 25]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue