Commit 463bfafd authored by Raymond Hettinger's avatar Raymond Hettinger

Clarify deprecation of the floor div operator, modulo operator,

and divmod() function for complex numbers.

Closes SF Bug 621708: Unclear deprecation.
parent a5c0e6d6
...@@ -700,11 +700,10 @@ approximately where \code{x/y} is replaced by \code{floor(x/y)}) or ...@@ -700,11 +700,10 @@ approximately where \code{x/y} is replaced by \code{floor(x/y)}) or
* y + x \%{} y} be very close to \code{x}. * y + x \%{} y} be very close to \code{x}.
}. }.
Complex floor division operator, modulo operator, and \deprecated{2.3}{The floor division operator, the modulo operator,
\function{divmod()}. and the \function{divmod()} function are no longer defined for complex
numbers. Instead, convert to a floating point number using the
\deprecated{2.3}{Instead convert to float using \function{abs()} \function{abs()} function if appropriate.}
if appropriate.}
The \code{+} (addition) operator yields the sum of its arguments. The \code{+} (addition) operator yields the sum of its arguments.
The arguments must either both be numbers or both sequences of the The arguments must either both be numbers or both sequences of the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment