From: Georg Brandl Date: Tue, 21 Aug 2007 06:07:08 +0000 (+0000) Subject: Bug #1777160: mention explicitly that e.g. -1**2 is -1. X-Git-Tag: v2.6a1~1469 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff457b1d051819b89c882df6dea8cc0e43e25a53;p=python Bug #1777160: mention explicitly that e.g. -1**2 is -1. --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index a1c4185dd3..93eb4122df 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -789,7 +789,7 @@ less tightly than unary operators on its right. The syntax is: 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