This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: List.sort docstring has obsolete cmp reference.
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: benjamin.peterson, georg.brandl, terry.reedy
Priority: normal Keywords: easy

Created on 2008-09-29 23:05 by terry.reedy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg74056 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-09-29 23:05
3.0rc1
>>> help(list.sort)
Help on method_descriptor:

sort(...)
    L.sort(key=None, reverse=False) -- stable sort *IN PLACE*;
    cmp(x, y) -> -1, 0, 1

The last line is left over from 2.x docstring.  Since cmp keyword param
is gone (so also says LibRef: "s.sort([key[, reverse]]) sort the items
of s in place") delete it.
msg74062 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-30 02:08
Thanks. Fixed in r66692.
History
Date User Action Args
2022-04-11 14:56:39adminsetgithub: 48248
2008-09-30 02:09:23benjamin.petersonsetstatus: open -> closed
resolution: fixed
2008-09-30 02:08:51benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg74062
2008-09-29 23:05:27terry.reedycreate