[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.53.4.4,1.53.4.5

fdrake@sourceforge.net fdrake@sourceforge.net
Mon, 29 Apr 2002 19:21:35 -0700


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

Modified Files:
      Tag: release22-maint
	ref5.tex 
Log Message:
Added a missing "|" in the grammar productions used in the reference manual
(reported by François Pinard).
Added some missing "_" characters in the same cluster of productions.
Added missing floor division operator in m_expr production, and mention
floor division in the relevant portion of the text.


Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.53.4.4
retrieving revision 1.53.4.5
diff -C2 -d -r1.53.4.4 -r1.53.4.5
*** ref5.tex	9 Apr 2002 14:38:44 -0000	1.53.4.4
--- ref5.tex	30 Apr 2002 02:21:32 -0000	1.53.4.5
***************
*** 665,673 ****
    \production{m_expr}
               {\token{u_expr} | \token{m_expr} "*" \token{u_expr}
                | \token{m_expr} "/" \token{u_expr}}
    \productioncont{| \token{m_expr} "\%" \token{u_expr}}
    \production{a_expr}
!              {\token{m_expr} | \token{aexpr} "+" \token{m_expr}
!               \token{aexpr} "-" \token{m_expr}}
  \end{productionlist}
  
--- 665,674 ----
    \production{m_expr}
               {\token{u_expr} | \token{m_expr} "*" \token{u_expr}
+               | \token{m_expr} "//" \token{u_expr}
                | \token{m_expr} "/" \token{u_expr}}
    \productioncont{| \token{m_expr} "\%" \token{u_expr}}
    \production{a_expr}
!              {\token{m_expr} | \token{a_expr} "+" \token{m_expr}
!               | \token{a_expr} "-" \token{m_expr}}
  \end{productionlist}
  
***************
*** 680,688 ****
  \index{multiplication}
  
! The \code{/} (division) operator yields the quotient of its
! arguments.  The numeric arguments are first converted to a common
! type.  Plain or long integer division yields an integer of the same
! type; the result is that of mathematical division with the `floor'
! function applied to the result.  Division by zero raises the
  \exception{ZeroDivisionError} exception.
  \exindex{ZeroDivisionError}
--- 681,690 ----
  \index{multiplication}
  
! The \code{/} (division) and \code{//} (floor division) operators yield
! the quotient of their arguments.  The numeric arguments are first
! converted to a common type.  Plain or long integer division yields an
! integer of the same type; the result is that of mathematical division
! with the `floor' function applied to the result.  Division by zero
! raises the
  \exception{ZeroDivisionError} exception.
  \exindex{ZeroDivisionError}