summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-21 06:07:08 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-21 06:07:08 (GMT)
commitff457b1d051819b89c882df6dea8cc0e43e25a53 (patch)
treeb9020ce973228111d70dbb24f3659b020f333ae8 /Doc
parentd7e9f608c33264f151264eb604bbcfdafe8c7a02 (diff)
downloadcpython-ff457b1d051819b89c882df6dea8cc0e43e25a53.zip
cpython-ff457b1d051819b89c882df6dea8cc0e43e25a53.tar.gz
cpython-ff457b1d051819b89c882df6dea8cc0e43e25a53.tar.bz2
Bug #1777160: mention explicitly that e.g. -1**2 is -1.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index a1c4185..93eb412 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