[Python-bugs-list] [ python-Bugs-815062 ] Py_OVERFLOWED should be
isinf() on openbsd
SourceForge.net
noreply at sourceforge.net
Tue Sep 30 08:09:19 EDT 2003
Bugs item #815062, was opened at 2003-09-30 22:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=815062&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_OVERFLOWED should be isinf() on openbsd
Initial Comment:
test_long and test_complex both fail on OpenBSD/x86.
The problem is essentially that:
>>> shuge = '12345' * 120
>>> float(int(shuge))
Inf
while on everything else, this raises an OverflowError.
Making the #ifdef in Include/pyport.h that sets
Py_OVERFLOWED to isinf() also do the same for OpenBSD
fixes this. I'm proposing to fix this for 2.3.2,
because then we're passing all tests on openbsd (minus
the wackiness from the HP testdrive boxes).
Tim, is there any reason to not add an autoconf test
for the presence of isinf(), and always use it for
Py_OVERFLOWED if it's present? Using it on this Redhat
9 system doesn't seem to break anything (well, the test
suite passes).
Obviously not going to make the latter change for
2.3.2, but is it appropriate for the trunk?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=815062&group_id=5470
More information about the Python-bugs-list
mailing list