summaryrefslogtreecommitdiff
path: root/Doc/library/heapq.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-17 13:00:36 +0000
committerGeorg Brandl <georg@python.org>2009-05-17 13:00:36 +0000
commit036490d025b768c9e69567c3caac63ccd7a62a09 (patch)
treeaeb86dff3b316514ee06be484fe0e482bcd83a12 /Doc/library/heapq.rst
parentcd86925b3bb994a8b2662cbe04be356768df5e86 (diff)
downloadcpython-git-036490d025b768c9e69567c3caac63ccd7a62a09.tar.gz
More conversion to new-style optional args.
Diffstat (limited to 'Doc/library/heapq.rst')
-rw-r--r--Doc/library/heapq.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst
index 4a18e0288c..6acb2836d2 100644
--- a/Doc/library/heapq.rst
+++ b/Doc/library/heapq.rst
@@ -115,7 +115,7 @@ The module also offers three general purpose functions based on heaps.
streams is already sorted (smallest to largest).
-.. function:: nlargest(n, iterable[, key])
+.. function:: nlargest(n, iterable, key=None)
Return a list with the *n* largest elements from the dataset defined by
*iterable*. *key*, if provided, specifies a function of one argument that is
@@ -124,7 +124,7 @@ The module also offers three general purpose functions based on heaps.
reverse=True)[:n]``
-.. function:: nsmallest(n, iterable[, key])
+.. function:: nsmallest(n, iterable, key=None)
Return a list with the *n* smallest elements from the dataset defined by
*iterable*. *key*, if provided, specifies a function of one argument that is