Robin W Gambill added the comment:
I see my error now. I'm sorry for my ignorance. I will google how to delete the
bugs item, but I guess is permanent, se la vie.
Thank you.
Robin
On Mon, 12/19/16, Tim Peters wrote:
Subject: [issue29016] negative numbers raised to power zero should be 1, not -1
To: r_w_gamb...@yahoo.com
Date: Monday, December 19, 2016, 12:51 PM
New submission from Tim Peters:
They already are.
>>> (-2)**0
1
You're probably doing this instead:
>>> -2**0
-1
Exponentiation has higher precedence than unary minus, so
that last example groups as -(2**0), and -1 is correct.
--
nosy: +tim.peters
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue29016>
___
--
___
Python tracker
<http://bugs.python.org/issue29016>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com