[ python-Bugs-872265 ] fpectl module needs updating
SourceForge.net
noreply at sourceforge.net
Thu Aug 3 16:37:26 CEST 2006
Bugs item #872265, was opened at 2004-01-07 05:32
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=872265&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Steve Chaplin (stevech)
Assigned to: Nobody/Anonymous (nobody)
Summary: fpectl module needs updating
Initial Comment:
The fpectl module docs (Python Library Reference 3.4.2)
says
"Setting up a given processor to trap IEEE-754 floating
point errors currently requires custom code on a
per-architecture basis."
I think that is no longer accurate, we now have fenv.h,
which:
- avoids the need for custom code, by using the
standard C99 header file
- should work on non-Unix and Unix systems
I think that the fpectl module could be rewritten and
greatly simplified using fenv.h
The Python module Numarray has done this and could be
used as an example.
----------------------------------------------------------------------
>Comment By: A.M. Kuchling (akuchling)
Date: 2006-08-03 10:37
Message:
Logged In: YES
user_id=11375
May as well close this bug; fpectl was a candidate for
deletion in 2.5 and may finally go away in 2.6, so no one is
going to update it.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2004-01-17 19:19
Message:
Logged In: YES
user_id=31435
Note the NEWS file for 2.3 said
"""
- The fpectl module is not built by default; it's dangerous or
useless except in the hands of experts.
"""
The fpectl module should die. It certainly still requires custom
code on a per-*platform* basis regardless, since most C
compilers used to build Python predate C99. If we could
assume C99 (we can't, just thinking out loud), then a new
module offering full access to 754's features should supplant
fpectl (fpectl now has a very narrow view of the world).
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-01-17 19:03
Message:
Logged In: YES
user_id=21627
Can you provide a patch? The tricky part is to ensure
backwards compatibility if you are fundamentally changing
the implementation strategy.
Also, what compilers on what architectures support fenv.h?
That it is part of C99 does not make it automatically
available on all systems.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=872265&group_id=5470
More information about the Python-bugs-list
mailing list