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, mark.dickinson, terry.reedy |
| Date | 2008年06月29日.16:43:34 |
| SpamBayes Score | 0.044394568 |
| Marked as misclassified | No |
| Message-id | <1214757815.56.0.0840247486621.issue3168@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I have not yet been able to duplicate the problem in a smaller test
case, but I did stumble into a fix. Changing the following statement in
the cmath_log function from
if (PyTuple_GET_SIZE(args) == 2)
x = c_quot(x, c_log(y));
to
if (PyTuple_GET_SIZE(args) == 2) {
y = c_log(y);
x = c_quot(x, y);
}
fixes the problem for the 64-bit -xO5 Python build. The result is no
the same in all 32- and 64-bit builds with -xO0 and -xO5 on Solaris 10
(Opteron) with SUN C.
>>> cmath.log(100, 2)
(6.6438561897747253+0j)
>>> cmath.log(0.01, 0.5)
(6.6438561897747244-0j) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月29日 16:43:35 | MrJean1 | set | spambayes_score: 0.0443946 -> 0.044394568 recipients: + MrJean1, terry.reedy, mark.dickinson |
| 2008年06月29日 16:43:35 | MrJean1 | set | spambayes_score: 0.0443946 -> 0.0443946 messageid: <1214757815.56.0.0840247486621.issue3168@psf.upfronthosting.co.za> |
| 2008年06月29日 16:43:34 | MrJean1 | link | issue3168 messages |
| 2008年06月29日 16:43:34 | MrJean1 | create | |