diff options
author | Georg Brandl <georg@python.org> | 2010-09-20 06:29:01 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-09-20 06:29:01 (GMT) |
commit | f1d633c386646d83c03934f47ff064847ff2a3da (patch) | |
tree | 3f296547ae7afb36b32d596aaa6fe2708e1e940e /Doc/reference/expressions.rst | |
parent | 448f20b8b19de43bff1ad589fcc2c9351ef83a36 (diff) | |
download | cpython-f1d633c386646d83c03934f47ff064847ff2a3da.zip cpython-f1d633c386646d83c03934f47ff064847ff2a3da.tar.gz cpython-f1d633c386646d83c03934f47ff064847ff2a3da.tar.bz2 |
Mention % as string formatting.
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r-- | Doc/reference/expressions.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 5fb8052..32df042 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1300,6 +1300,7 @@ groups from right to left). | ``+``, ``-`` | Addition and subtraction | +-----------------------------------------------+-------------------------------------+ | ``*``, ``/``, ``//``, ``%`` | Multiplication, division, remainder | +| | [#]_ | +-----------------------------------------------+-------------------------------------+ | ``+x``, ``-x``, ``~x`` | Positive, negative, bitwise NOT | +-----------------------------------------------+-------------------------------------+ @@ -1342,5 +1343,7 @@ groups from right to left). the :keyword:`is` operator, like those involving comparisons between instance methods, or constants. Check their documentation for more info. +.. [#] The ``%`` is also used for string formatting; the same precedence applies. + .. [#] The power operator ``**`` binds less tightly than an arithmetic or bitwise unary operator on its right, that is, ``2**-1`` is ``0.5``. |