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
bca22096
Commit
bca22096
authored
Jan 18, 2013
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the function signature in the docstring
parent
86af5815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/_heapqmodule.c
Modules/_heapqmodule.c
+3
-3
No files found.
Modules/_heapqmodule.c
View file @
bca22096
...
...
@@ -141,7 +141,7 @@ heappush(PyObject *self, PyObject *args)
}
PyDoc_STRVAR
(
heappush_doc
,
"Push item onto heap, maintaining the heap invariant."
);
"
heappush(heap, item) -> None.
Push item onto heap, maintaining the heap invariant."
);
static
PyObject
*
heappop
(
PyObject
*
self
,
PyObject
*
heap
)
...
...
@@ -209,7 +209,7 @@ heapreplace(PyObject *self, PyObject *args)
}
PyDoc_STRVAR
(
heapreplace_doc
,
"Pop and return the current smallest value, and add the new item.
\n
\
"
heapreplace(heap, item) -> value.
Pop and return the current smallest value, and add the new item.
\n
\
\n
\
This is more efficient than heappop() followed by heappush(), and can be
\n
\
more appropriate when using a fixed-size heap. Note that the value
\n
\
...
...
@@ -256,7 +256,7 @@ heappushpop(PyObject *self, PyObject *args)
}
PyDoc_STRVAR
(
heappushpop_doc
,
"Push item on the heap, then pop and return the smallest item
\n
\
"
heappushpop(heap, item) -> value.
Push item on the heap, then pop and return the smallest item
\n
\
from the heap. The combined action runs more efficiently than
\n
\
heappush() followed by a separate call to heappop()."
);
...
...
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