homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:14mark.dickinsonsetrecipients: + mark.dickinson, ezio.melotti, mrabarnett, Marcelo.Delgado
2012年05月16日 07:12:14mark.dickinsonsetmessageid: <1337152334.41.0.932827315898.issue14825@psf.upfronthosting.co.za>
2012年05月16日 07:12:13mark.dickinsonlinkissue14825 messages
2012年05月16日 07:12:13mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /