[issue3168] cmath test fails on Solaris 10

Jean Brouwers report at bugs.python.org
Sat Jun 28 21:14:44 CEST 2008

Jean Brouwers <MrJean1 at Gmail.com> added the comment:

This is pretty bizarre, take a look at the following, 64-bit Pyhon 2.6b1 

Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.log(100.0, 2.0)
>>> math.log(100.0) / math.log(2.0)

>>> import cmath
>>> cmath.log(100.0, 2.0)
>>> cmath.log(complex(100.0, 0), complex(2.0, 0)) 

>>> cmath.log(2.0)
>>> cmath.log(100.0)
>>> cmath.log(100.0) / cmath.log(2.0)

There is only an issue with cmath.log(100.0, 2.0) but not with 
cmath.log(100.0) / cmath.log(2.0).  That seems to indicate that the 
c_quot function may be the root cause of the problem.

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list