[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.73,1.74

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Thu, 26 Jun 2003 10:41:43 -0700


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1:/tmp/cvs-serv20082

Modified Files:
	ref5.tex 
Log Message:
* Fixed an unmatched parenthesis early in the text.

* Clarified the meaning of lexicographic sequence ordering as discussed on
  comp.lang.python:  http://groups.google.com/groups?th=e163c9f9ba114493



Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** ref5.tex	6 Jun 2003 02:52:14 -0000	1.73
--- ref5.tex	26 Jun 2003 17:41:40 -0000	1.74
***************
*** 715,719 ****
  \code{divmod(x, y) == (x/y, x\%y)}.  These identities don't hold for
  floating point numbers; there similar identities hold
! approximately where \code{x/y} is replaced by \code{floor(x/y)}) or
  \code{floor(x/y) - 1}\footnote{
      If x is very close to an exact integer multiple of y, it's
--- 715,719 ----
  \code{divmod(x, y) == (x/y, x\%y)}.  These identities don't hold for
  floating point numbers; there similar identities hold
! approximately where \code{x/y} is replaced by \code{floor(x/y)} or
  \code{floor(x/y) - 1}\footnote{
      If x is very close to an exact integer multiple of y, it's
***************
*** 868,872 ****
  \item
  Tuples and lists are compared lexicographically using comparison of
! corresponding items.
  
  \item
--- 868,880 ----
  \item
  Tuples and lists are compared lexicographically using comparison of
! corresponding elements.  This means that to compare equal, each
! element must compare equal and the two sequences must be of the same
! type and have the same length.
! 
! If not equal, the sequences are ordered the same as their first
! differing elements.  For example, \code{cmp([1,2,x], [1,2,y])} returns
! the same as \code{cmp(x,y)}.  If the corresponding element does not
! exist, the shorter sequence is ordered first (for example,
! \code{[1,2] < [1,2,3]}).
  
  \item