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 MrJean1
Recipients MrJean1, loewis, mark.dickinson, skip.montanaro, terry.reedy
Date 2008-06-29.16:14:10
SpamBayes Score 0.00050567643
Marked as misclassified No
Message-id <1214756051.92.0.67701020343.issue3167@psf.upfronthosting.co.za>
In-reply-to
Content
What about this case? Should cmath not produce the same result as math:

>>> math.log(float('-inf'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: math domain error

>>> cmath.log(float('-inf'))
(inf+3.1415926535897931j)
>>> cmath.log(complex(float('-inf'), 0))
(inf+3.1415926535897931j)


This occurs in all 32- and 64-bit builds (with -xlibmieee and SUN C) on 
Solaris 10 (Opteron) and on 32-bit MacOS X 10.4.11 (Intel) built with 
gcc.
History
Date User Action Args
2008-06-29 16:14:12MrJean1setspambayes_score: 0.000505676 -> 0.00050567643
recipients: + MrJean1, loewis, skip.montanaro, terry.reedy, mark.dickinson
2008-06-29 16:14:11MrJean1setspambayes_score: 0.000505676 -> 0.000505676
messageid: <1214756051.92.0.67701020343.issue3167@psf.upfronthosting.co.za>
2008-06-29 16:14:11MrJean1linkissue3167 messages
2008-06-29 16:14:10MrJean1create