[Python-Dev] [Python-checkins] r51525 - in python/trunk:Lib/test/test_float.py Objects/floatobject.c
martin at v.loewis.de
martin at v.loewis.de
Thu Aug 24 00:13:55 CEST 2006
Zitat von Tim Peters <tim.peters at gmail.com>:
> Huh. It's been a (mildly controversial, but intentional all the same)
> feature that Python tries to raise raise OverflowError on overflowing
> libm operations. Doesn't work all that well, since there's no
> consistency across platforms about when libm sets errno, or to what
> (when it does).
The other question is whether pow() is guaranteed to return inf
when it sets errno to ERANGE; I believe there is no such guarantee.
So I think the change should be reverted.
Regards,
Martin
More information about the Python-Dev
mailing list