[Python-checkins] r57255 - python/trunk/Doc/reference/expressions.rst
georg.brandl
python-checkins at python.org
Tue Aug 21 08:07:08 CEST 2007
Author: georg.brandl
Date: Tue Aug 21 08:07:08 2007
New Revision: 57255
Modified:
python/trunk/Doc/reference/expressions.rst
Log:
Bug #1777160: mention explicitly that e.g. -1**2 is -1.
Modified: python/trunk/Doc/reference/expressions.rst
==============================================================================
--- python/trunk/Doc/reference/expressions.rst (original)
+++ python/trunk/Doc/reference/expressions.rst Tue Aug 21 08:07:08 2007
@@ -789,7 +789,7 @@
Thus, in an unparenthesized sequence of power and unary operators, the operators
are evaluated from right to left (this does not constrain the evaluation order
-for the operands).
+for the operands): ``-1**2`` results in ``-1``.
The power operator has the same semantics as the built-in :func:`pow` function,
when called with two arguments: it yields its left argument raised to the power
More information about the Python-checkins
mailing list