]> granicus.if.org Git - python/commitdiff
Mention % as string formatting.
authorGeorg Brandl <georg@python.org>
Mon, 20 Sep 2010 06:29:01 +0000 (06:29 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 20 Sep 2010 06:29:01 +0000 (06:29 +0000)
Doc/reference/expressions.rst

index 5fb805223144bb91e174769508e3b9ba89245c95..32df0429a732411b020ed76491490e329f907dc7 100644 (file)
@@ -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``.