diff options
author | Raymond Hettinger <python@rcn.com> | 2007-02-19 18:15:04 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-02-19 18:15:04 (GMT) |
commit | cbac8ce5b0394fe68329ac839a07474969dd7493 (patch) | |
tree | c4cbfe4a1571febde06e9aeffe2bf00fd28e3f58 /Lib | |
parent | 382abeff0f1a53ffaaddfea06e8721bf42b66502 (diff) | |
download | cpython-cbac8ce5b0394fe68329ac839a07474969dd7493.zip cpython-cbac8ce5b0394fe68329ac839a07474969dd7493.tar.gz cpython-cbac8ce5b0394fe68329ac839a07474969dd7493.tar.bz2 |
Fixup docstrings for merge().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/heapq.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/heapq.py b/Lib/heapq.py index 5d41425..0f67236 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -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] |