[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.70,1.71
Tim Peters
tim_one@users.sourceforge.net
Fri, 28 Sep 2001 18:08:21 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv23946/python/Doc/lib
Modified Files:
libstdtypes.tex
Log Message:
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.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** libstdtypes.tex 2001/09/23 04:06:04 1.70
--- libstdtypes.tex 2001/09/29 01:08:19 1.71
***************
*** 886,890 ****
\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
the first argument is considered smaller than, equal to, or larger
than the second argument. Note that this slows the sorting process
--- 886,890 ----
\item[(6)] The \method{sort()} method takes an optional argument
specifying a comparison function of two arguments (list items) which
! 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