]> granicus.if.org Git - python/commit
* list.sort() now supports three keyword arguments: cmp, key, and reverse.
authorRaymond Hettinger <python@rcn.com>
Thu, 16 Oct 2003 03:41:09 +0000 (03:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 16 Oct 2003 03:41:09 +0000 (03:41 +0000)
commit42b1ba31aff86af6257a0fca455d5569bce9d8fc
tree0497ccd614d5ed8a4cfbb2bce4362f61faf0aeb1
parent90f7d254a9ae20d6d783138eb8567f39e6ff7e04
* list.sort() now supports three keyword arguments:  cmp, key, and reverse.
  key provides C support for the decorate-sort-undecorate pattern.
  reverse provide a stable sort of the list with the comparisions reversed.

* Amended the docs to guarantee sort stability.
Doc/lib/libstdtypes.tex
Lib/test/test_sort.py
Misc/NEWS
Objects/listobject.c