[svn] Add modulo division to the list of supported operators.
authorGeorg Brandl <georg@python.org>
Wed, 11 Apr 2007 13:56:21 +0000 (15:56 +0200)
committerGeorg Brandl <georg@python.org>
Wed, 11 Apr 2007 13:56:21 +0000 (15:56 +0200)
--HG--
branch : trunk

docs/src/designerdoc.txt

index a705e688eb5babc1c9c4a14c07b7c441e9553efa..339c05843698b213b3df649345f5e880f0c6840d 100644 (file)
@@ -371,6 +371,8 @@ can use expressions. In expressions you can use any of the following operators:
             ``{{ 2 * 2 }}`` would return ``4``.
     ``**``  raise the left operand to the power of the right
             operand. ``{{ 2**3 }}`` would return ``8``.
+    ``%``   calculate the remainder of an integer division between the
+            left and right operand: ``{{ 11 % 7 }}`` is ``4``.
     ``in``  perform sequence membership test. ``{{ 1 in [1,2,3] }}`` would
             return true.
     ``is``  perform a test on the value. See the section about