fpectl
Jeff Epler
jepler at unpythonic.net
Mon Apr 18 20:16:18 EDT 2005
It looks like the automatic build of the 'fpectl' module was broken
somewhere along the line, perhaps when the transition from Modules/Setup
to setup.py took place.
Once I made the change below and rebuilt, I got the fpectl module.
Furthermore, it appeared to "do something" on my Linux/x86 system:
$ ./python -c '1e200 ** 6'
OverflowError: (34, 'Numerical result out of range')
$ ./python -c 'import fpectl; print dir(fpectl); fpectl.turnon_sigfpe(); 1e200 ** 6'
['__doc__', '__file__', '__name__', 'error', 'turnoff_sigfpe', 'turnon_sigfpe']
Fatal Python error: Unprotected floating point exception
Aborted
Jeff
Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.217
diff -u -u -r1.217 setup.py
--- setup.py 15 Apr 2005 20:32:39 -0000 1.217
+++ setup.py 19 Apr 2005 00:13:15 -0000
@@ -400,6 +400,8 @@
# select(2); not on ancient System V
exts.append( Extension('select', ['selectmodule.c']) )
+ exts.append( Extension('fpectl', ['fpectlmodule.c']) )
+
# The md5 module implements the RSA Data Security, Inc. MD5
# Message-Digest Algorithm, described in RFC 1321. The
# necessary files md5c.c and md5.h are included here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050418/92bf29f6/attachment.sig>
More information about the Python-list
mailing list