From c47f1c194acb964ba5fde14b4f45e4c2304c8567 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 26 Dec 2005 23:15:48 +0000 Subject: Bug #839585: mention % string operator in language ref --- Doc/ref/ref5.tex | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12