cpython: b01568e2597e (original) (raw)

Mercurial > cpython

changeset 93178:b01568e2597e

#22237: merge with 3.4. [#22237]

Ezio Melotti ezio.melotti@gmail.com
date Tue, 28 Oct 2014 12:58:47 +0100
parents a22ef88143b9(current diff)5dd4906daa62(diff)
children 7e870ddd1989
files Doc/library/functions.rst Doc/library/heapq.rst
diffstat 2 files changed, 8 insertions(+), 1 deletions(-)[+] [-] Doc/library/functions.rst 5 Doc/library/heapq.rst 4

line wrap: on

line diff

--- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1286,6 +1286,11 @@ are always available. They are listed h Use :func:functools.cmp_to_key to convert an old-style cmp function to a key function.

--- a/Doc/library/heapq.rst +++ b/Doc/library/heapq.rst @@ -135,7 +135,6 @@ pushing all values onto a heap and then time:: >>> def heapsort(iterable):

+This is similar to sorted(iterable), but unlike :func:sorted, this +implementation is not stable. + Heap elements can be tuples. This is useful for assigning comparison values (such as task priorities) alongside the main record being tracked::