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 bjodah
Recipients bjodah
Date 2012-08-16.15:30:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345131012.45.0.334354772161.issue15692@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, I hope this is not a false positive but I cannot help thinking this is a bug, consider:

Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> -3.2**0
-1.0
>>> sign=lambda x: x**0
>>> sign(-3.2)
1.0

Python 3.2.3 (default, May  3 2012, 15:51:42) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> -3.2**0
-1.0
>>> sign=lambda x: x**0
>>> sign(-3.2)
1.0


Or is this expected?

Best regards,
Björn Dahlgren
History
Date User Action Args
2012-08-16 15:30:12bjodahsetrecipients: + bjodah
2012-08-16 15:30:12bjodahsetmessageid: <1345131012.45.0.334354772161.issue15692@psf.upfronthosting.co.za>
2012-08-16 15:30:11bjodahlinkissue15692 messages
2012-08-16 15:30:11bjodahcreate