Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cbac8ce5
Commit
cbac8ce5
authored
Feb 19, 2007
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup docstrings for merge().
parent
382abeff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/lib/libheapq.tex
Doc/lib/libheapq.tex
+2
-2
Lib/heapq.py
Lib/heapq.py
+2
-2
No files found.
Doc/lib/libheapq.tex
View file @
cbac8ce5
...
...
@@ -96,8 +96,8 @@ timestamped entries from multiple log files). Returns an iterator over
over the sorted values.
Similar to
\code
{
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)
.
\versionadded
{
2.6
}
\end{funcdesc}
...
...
Lib/heapq.py
View file @
cbac8ce5
...
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment