[Python-checkins] commit of r41820 - python/trunk/Doc/ref/ref5.tex
reinhold.birkenfeld
python-checkins at python.org
Tue Dec 27 00:15:48 CET 2005
Author: reinhold.birkenfeld
Date: Tue Dec 27 00:15:48 2005
New Revision: 41820
Modified:
python/trunk/Doc/ref/ref5.tex
Log:
Bug #839585: mention % string operator in language ref
Modified: python/trunk/Doc/ref/ref5.tex
==============================================================================
--- python/trunk/Doc/ref/ref5.tex (original)
+++ python/trunk/Doc/ref/ref5.tex Tue Dec 27 00:15:48 2005
@@ -777,6 +777,12 @@
* 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
More information about the Python-checkins
mailing list