diff options
author | Georg Brandl <georg@python.org> | 2005-12-26 23:15:48 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-12-26 23:15:48 (GMT) |
commit | c47f1c194acb964ba5fde14b4f45e4c2304c8567 (patch) | |
tree | 7eb36ca482e4de824f95af7028735f87e6d08493 /Doc | |
parent | 10141742d517144afe7fbba7e08ca5eddea70d69 (diff) | |
download | cpython-c47f1c194acb964ba5fde14b4f45e4c2304c8567.zip cpython-c47f1c194acb964ba5fde14b4f45e4c2304c8567.tar.gz cpython-c47f1c194acb964ba5fde14b4f45e4c2304c8567.tar.bz2 |
Bug #839585: mention % string operator in language ref
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref5.tex | 6 |
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 |