summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-12-26 23:15:50 (GMT)
committerGeorg Brandl <georg@python.org>2005-12-26 23:15:50 (GMT)
commit26c221fe738164de2f05c44806306ce82a65e5d8 (patch)
treec05a22dbdf27c33fe2ea245a75fa2460993b5044 /Doc
parentb9ae3e3535ac7efaf396dc47811687d7186e445b (diff)
downloadcpython-26c221fe738164de2f05c44806306ce82a65e5d8.zip
cpython-26c221fe738164de2f05c44806306ce82a65e5d8.tar.gz
cpython-26c221fe738164de2f05c44806306ce82a65e5d8.tar.bz2
Bug #839585: mention % string operator in language ref (backport)
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