diff options
author | Georg Brandl <georg@python.org> | 2007-08-21 06:07:08 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-21 06:07:08 (GMT) |
commit | ff457b1d051819b89c882df6dea8cc0e43e25a53 (patch) | |
tree | b9020ce973228111d70dbb24f3659b020f333ae8 /Doc/reference | |
parent | d7e9f608c33264f151264eb604bbcfdafe8c7a02 (diff) | |
download | cpython-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/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 2 |
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 |