[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Robin W Gambill
ative 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

[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Tim Peters
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: -

[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Robin W Gambill
Changes by Robin W Gambill : -- components: Interpreter Core nosy: rwgambill priority: normal severity: normal status: open title: negative numbers raised to power zero should be 1, not -1 type: behavior versions: Python 3.5 ___ Python tracker