Message160808
| Author |
mark.dickinson |
| Recipients |
Marcelo.Delgado, ezio.melotti, mark.dickinson, mrabarnett |
| Date |
2012年05月16日.07:12:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337152334.41.0.932827315898.issue14825@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. :-) |
|
History
|
|---|
| 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 |
|