From af93c4c8d99445b518af91a3b7cbfe334a34b013 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 30 Apr 2002 02:18:51 +0000 Subject: [PATCH] =?UTF-8?q?Added=20a=20missing=20"|"=20in=20the=20grammar?= =?UTF-8?q?=20productions=20used=20in=20the=20reference=20manual=20(report?= =?UTF-8?q?ed=20by=20Fran=C3=A7ois=20Pinard).=20Added=20some=20missing=20"?= =?UTF-8?q?=5F"=20characters=20in=20the=20same=20cluster=20of=20production?= =?UTF-8?q?s.=20Added=20missing=20floor=20division=20operator=20in=20m=5Fe?= =?UTF-8?q?xpr=20production,=20and=20mention=20floor=20division=20in=20the?= =?UTF-8?q?=20relevant=20portion=20of=20the=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/ref/ref5.tex | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index e4372636894..6e28fab7a42 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -648,11 +648,12 @@ operators: \begin{productionlist} \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{aexpr} "+" \token{m_expr} - \token{aexpr} "-" \token{m_expr}} + {\token{m_expr} | \token{a_expr} "+" \token{m_expr} + | \token{a_expr} "-" \token{m_expr}} \end{productionlist} The \code{*} (multiplication) operator yields the product of its @@ -663,11 +664,12 @@ then multiplied together. In the latter case, sequence repetition is performed; a negative repetition factor yields an empty sequence. \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 +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} \index{division}