diff options
author | Raymond Hettinger <python@rcn.com> | 2004-06-10 05:03:17 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-06-10 05:03:17 (GMT) |
commit | 33ecffb65ae43ece95e4d828f95819395187d579 (patch) | |
tree | 499adce5b4fc964973a8e72baf2c6214bcef89e3 /Doc/whatsnew | |
parent | 7d019664d7fcd3692eafef668fbc2e17126dee14 (diff) | |
download | cpython-33ecffb65ae43ece95e4d828f95819395187d579.zip cpython-33ecffb65ae43ece95e4d828f95819395187d579.tar.gz cpython-33ecffb65ae43ece95e4d828f95819395187d579.tar.bz2 |
SF patch #969791: Add nlargest() and nsmallest() to heapq.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index 3f4151f..4a67916 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -449,7 +449,10 @@ improved performance: \module{Queue}, \module{mutex}, \module{shlex} \item The \module{heapq} module has been converted to C. The resulting tenfold improvement in speed makes the module suitable for handling - high volumes of data. + high volumes of data. In addition, the module has two new functions + \function{nlargest()} and \function{nsmallest()} that use heaps to + find the largest or smallest n values in a dataset without the + expense of a full sort. \item The \module{imaplib} module now supports IMAP's THREAD command. (Contributed by Yves Dionne.) |