Staging
v0.5.1
https://github.com/python/cpython
Revision a40c793d06ee2b42a5013015352616b4ca6b288b authored by Tim Peters on 05 September 2001, 22:36:56 UTC, committed by Tim Peters on 05 September 2001, 22:36:56 UTC
requires that errno ever get set, and it looks like glibc is already
playing that game.  New rules:

+ Never use HUGE_VAL.  Use the new Py_HUGE_VAL instead.

+ Never believe errno.  If overflow is the only thing you're interested in,
  use the new Py_OVERFLOWED(x) macro.  If you're interested in any libm
  errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts
  to set errno the way C89 said it worked.

Unfortunately, none of these are reliable, but they work on Windows and I
*expect* under glibc too.
1 parent 75ed167
History
Tip revision: a40c793d06ee2b42a5013015352616b4ca6b288b authored by Tim Peters on 05 September 2001, 22:36:56 UTC
Rework the way we try to check for libm overflow, given that C99 no longer
Tip revision: a40c793
File Mode Size
RPM
ACKS -rw-r--r-- 6.5 KB
AIX-NOTES -rw-r--r-- 7.3 KB
BeOS-NOTES -rw-r--r-- 1.4 KB
BeOS-setup.py -rw-r--r-- 24.6 KB
HISTORY -rw-r--r-- 305.2 KB
HPUX-NOTES -rw-r--r-- 1.0 KB
Makefile.pre.in -rw-r--r-- 10.0 KB
NEWS -rw-r--r-- 92.4 KB
PURIFY.README -rw-r--r-- 3.6 KB
Porting -rw-r--r-- 1.9 KB
README -rw-r--r-- 1.8 KB
RFD -rw-r--r-- 3.9 KB
cheatsheet -rw-r--r-- 99.9 KB
find_recursionlimit.py -rw-r--r-- 2.2 KB
gdbinit -rw-r--r-- 898 bytes
indent.pro -rw-r--r-- 66 bytes
python-mode.el -rw-r--r-- 120.6 KB
python.man -rw-r--r-- 11.1 KB
setuid-prog.c -rw-r--r-- 5.3 KB
unicode.txt -rw-r--r-- 112 bytes
vgrindefs -rw-r--r-- 505 bytes

README

back to top