Possible bug (was Re: numpy, overflow, inf, ieee, and rich comparison)
Huaiyu Zhu
hzhu at yahoo.com
Tue Oct 10 17:47:26 EDT 2000
On Tue, 10 Oct 2000 07:01:40 -0400, Tim Peters <tim_one at email.msn.com> wrote:
>
>Can't answer your question. It's a platform-dependent crap shoot, and in
>any case is usually entirely due to the libraries you're linking with and
>nothing to do with the compiler. Do you have any way to tell which
>libraries you're using in the two cases? Can you still get at them? If so,
>write a little C program to do the same thing, and see whether exp sets
>errno there.
This is very likely to be a 2.0 bug. Just to make sure, I have used freshly
downloaded source code of both 1.5.2 and 2.0b2, then
./configure
make
./python
from math import *
exp(-746)
I got 0.0 from 1.5.2 but OverflowError: math range error from 2.0b2.
The file mathmodule.c has quite some differences between the two versions,
mostly related to the ANSIfication. I'm not sure where the problem is.
I haven't tried the 2.0c1 yet, as the site is not available. Can other Unix
users confirm this behavior?
Huaiyu
More information about the Python-list
mailing list