summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-29 01:08:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-29 01:08:19 (GMT)
commit599db7de6382179155c54dcf675b7af160df395f (patch)
tree6dca9c04296127d00d9f57075310f7cb050a72d1 /Doc
parent84675acb49071977741a97d56c21967fbc520948 (diff)
downloadcpython-599db7de6382179155c54dcf675b7af160df395f.zip
cpython-599db7de6382179155c54dcf675b7af160df395f.tar.gz
cpython-599db7de6382179155c54dcf675b7af160df395f.tar.bz2
The list.sort() docs require a function that returns -1, 0 or +1. That's
never been true, and in particular implies cmp() can't be used(!). Get closer to the truth.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 916a1cf..b06cd5e 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -885,7 +885,7 @@ Notes:
\item[(6)] The \method{sort()} method takes an optional argument
specifying a comparison function of two arguments (list items) which
- should return \code{-1}, \code{0} or \code{1} depending on whether
+ should return a negative, zero or positive number depending on whether
the first argument is considered smaller than, equal to, or larger
than the second argument. Note that this slows the sorting process
down considerably; e.g. to sort a list in reverse order it is much