mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Bug #839585: mention % string operator in language ref
This commit is contained in:
parent
10141742d5
commit
c47f1c194a
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue