summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref5.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index 3d30cdc..6e4207f 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -777,6 +777,12 @@ approximately where \code{x/y} is replaced by \code{floor(x/y)} or
* y + x \%{} y} be very close to \code{x}.
}.
+In addition to performing the modulo operation on numbers, the \code{\%}
+operator is also overloaded by string and unicode objects to perform
+string formatting (also known as interpolation). The syntax for string
+formatting is described in the Python Library Reference, section
+``Sequence Types''.
+
\deprecated{2.3}{The floor division operator, the modulo operator,
and the \function{divmod()} function are no longer defined for complex
numbers. Instead, convert to a floating point number using the