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 CWardUSC
Recipients CWardUSC
Date 2010-04-09.05:57:23
SpamBayes Score 6.6451605e-10
Marked as misclassified No
Message-id <1270792645.79.0.439452519354.issue8353@psf.upfronthosting.co.za>
In-reply-to
Content
When using exponentiation interactively in the python shell, it returns all negative results when a negative number is the input. For example:

-4 ** 2 will return -16
-4 ** 2 should evaluate as -4 * -4, which correctly returns 16

This does not occur when using the 'Run Module' feature of IDLE and the exponentiation is processed from the module, it only seems to occur when directly typed into the interactive prompt. I couldn't find anything to suggest this is expected behavior. Using pow() from the prompt returns the correct result, so it only happens in this one situation. Obviously this is low priority since it only affects the prompt and there's a working alternative, but I figured I'd report it anyways. :)
History
Date User Action Args
2010-04-09 05:57:25CWardUSCsetrecipients: + CWardUSC
2010-04-09 05:57:25CWardUSCsetmessageid: <1270792645.79.0.439452519354.issue8353@psf.upfronthosting.co.za>
2010-04-09 05:57:24CWardUSClinkissue8353 messages
2010-04-09 05:57:23CWardUSCcreate