[New-bugs-announce] [issue3998] List.sort docstring has obsolete cmp reference.

Terry J. Reedy report at bugs.python.org
Tue Sep 30 01:05:28 CEST 2008

New submission from Terry J. Reedy <tjreedy at udel.edu>:

>>> help(list.sort)
Help on method_descriptor:

    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.

assignee: georg.brandl
components: Documentation
keywords: easy
messages: 74056
nosy: georg.brandl, tjreedy
severity: normal
status: open
title: List.sort docstring has obsolete cmp reference.
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list