Message160808
It sounds like you're seeing the difference between this:
>>> n = -7
>>> n ** 0
1
and this:
>>> -7 ** 0
-1
This isn't a bug; it's to do with how Python expressions are parsed: in the second case, the expression is grouped as -(7 ** 0) rather than (-7) ** 0.
BTW, it's helpful to post exact code when filing a possible bug. :-) |
|
Date |
User |
Action |
Args |
2012-05-16 07:12:14 | mark.dickinson | set | recipients:
+ mark.dickinson, ezio.melotti, mrabarnett, Marcelo.Delgado |
2012-05-16 07:12:14 | mark.dickinson | set | messageid: <1337152334.41.0.932827315898.issue14825@psf.upfronthosting.co.za> |
2012-05-16 07:12:13 | mark.dickinson | link | issue14825 messages |
2012-05-16 07:12:13 | mark.dickinson | create | |
|