From: Raymond Hettinger Date: Tue, 31 May 2005 11:04:00 +0000 (+0000) Subject: SF bug #1209411: divmod documentation shd reference // not / X-Git-Tag: v2.5a0~1770 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dede3bdfa1f6c8dd7f27848c9f43c8a17ed50e9f;p=python SF bug #1209411: divmod documentation shd reference // not / --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 7b990e9264..cd1486506d 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -297,7 +297,7 @@ class C: consisting of their quotient and remainder when using long division. With mixed operand types, the rules for binary arithmetic operators apply. For plain and long integers, the result is the same as - \code{(\var{a} / \var{b}, \var{a} \%{} \var{b})}. + \code{(\var{a} // \var{b}, \var{a} \%{} \var{b})}. For floating point numbers the result is \code{(\var{q}, \var{a} \%{} \var{b})}, where \var{q} is usually \code{math.floor(\var{a} / \var{b})} but may be 1 less than that. In any case \code{\var{q} * diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 113a9c420d..d2ab808ab0 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -256,7 +256,7 @@ comparison operations): \lineiii{float(\var{x})}{\var{x} converted to floating point}{} \lineiii{complex(\var{re},\var{im})}{a complex number with real part \var{re}, imaginary part \var{im}. \var{im} defaults to zero.}{} \lineiii{\var{c}.conjugate()}{conjugate of the complex number \var{c}}{} - \lineiii{divmod(\var{x}, \var{y})}{the pair \code{(\var{x} / \var{y}, \var{x} \%{} \var{y})}}{(3)(4)} + \lineiii{divmod(\var{x}, \var{y})}{the pair \code{(\var{x} // \var{y}, \var{x} \%{} \var{y})}}{(3)(4)} \lineiii{pow(\var{x}, \var{y})}{\var{x} to the power \var{y}}{} \lineiii{\var{x} ** \var{y}}{\var{x} to the power \var{y}}{} \end{tableiii}