cpython/Modules
Tim Peters dc5a508761 SF bug 525705: [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.
2002-03-09 04:58:24 +00:00
..
expat Define VERSION in expat.h. 2002-02-13 07:47:16 +00:00
.cvsignore
Setup.config.in
Setup.dist Break SSL support out of _socket module and place it into a new 2002-02-16 18:23:30 +00:00
_codecsmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
_curses_panel.c Oh look, another one. 2002-01-30 15:47:34 +00:00
_cursesmodule.c I think this fixes 2002-01-30 15:39:28 +00:00
_hotshot.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
_localemodule.c sprintf -> PyOS_snprintf in some "obviously safe" cases. 2001-11-28 20:27:42 +00:00
_sre.c bug #133283, #477728, #483789, #490573 2001-12-09 16:13:15 +00:00
_ssl.c Break SSL support out of _socket module and place it into a new 2002-02-16 18:23:30 +00:00
_testcapimodule.c Fixed "u#" parser marker to pass through Unicode objects as-is without 2002-01-09 16:21:27 +00:00
_tkinter.c Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962. 2002-01-26 20:21:50 +00:00
_weakref.c Convert the ref() and proxy() implementations to use the new 2001-10-23 21:12:47 +00:00
addrinfo.h Undefine addrinfo.h constants if the system header defined them. 2001-12-06 19:04:35 +00:00
almodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
ar_beos
arraymodule.c Remove tp_print. 2002-03-04 09:38:52 +00:00
audioop.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
binascii.c SF bug #494738: binascii_b2a_base64 overwrites memory. 2001-12-19 04:41:35 +00:00
bsddbmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
cPickle.c Merge of the release22 branch changes back into the trunk. 2001-12-21 20:04:22 +00:00
cStringIO.c Fix SF bug #526518 2002-03-08 17:17:33 +00:00
ccpython.cc
cdmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
cgen.py
cgensupport.c
cgensupport.h
clmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
cmathmodule.c SF bug 525705: [2.2] underflow raise OverflowException. 2002-03-09 04:58:24 +00:00
config.c.in
cryptmodule.c
cstubs
dbmmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
dlmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
errnomodule.c Removed an XXX question (the answer is "yes" <wink>). 2002-01-26 17:58:02 +00:00
fcntlmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
flmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
fmmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
fpectlmodule.c Got rid of a few more NeXT ifdefs. The last, I think. 2002-02-01 15:46:29 +00:00
fpetestmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
gcmodule.c Fix spelling mistakes. Bugfix candidates. 2002-01-29 00:53:41 +00:00
gdbmmodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
getaddrinfo.c Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
getbuildinfo.c More sprintf -> PyOS_snprintf. 2001-12-04 01:11:32 +00:00
getnameinfo.c Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
getpath.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
glmodule.c
grpmodule.c Patch #523268, #522027: return enhanced tuples. 2002-03-01 10:38:44 +00:00
imageop.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
imgfile.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
ld_so_aix
ld_so_beos
license.terms
linuxaudiodev.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
main.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
makesetup
makexp_aix
mathmodule.c
md5.h
md5c.c
md5module.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
mmapmodule.c SF bug 515943: searching for data with \0 in mmap. 2002-03-08 05:43:32 +00:00
mpzmodule.c SF patch 517245 by Marc Recht. 2002-03-01 21:31:27 +00:00
newmodule.c There's no need for typechecks on the second and third argument of 2002-01-15 19:21:05 +00:00
nismodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
operator.c
parsermodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
pcre-int.h
pcre.h
pcremodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
posixmodule.c Python no longer compiled on Windows, due to #include file confusion 2002-03-03 23:17:02 +00:00
puremodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
pwdmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
pyexpat.c Use included Expat library. Drop support for older expat versions. 2002-02-11 23:27:45 +00:00
pypcre.c
python.c
readline.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
regexmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
regexpr.c
regexpr.h
resource.c Use PyModule_AddIntConstant() instead of creating a private helper function. 2002-02-14 06:59:26 +00:00
rgbimgmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
rotormodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
selectmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
sgimodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
shamodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
signalmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
socketmodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 03:03:52 +00:00
socketmodule.h Patch #520062: Support IPv6 with VC.NET. 2002-03-01 08:31:07 +00:00
sre.h
sre_constants.h
stropmodule.c More sprintf -> PyOS_snprintf. 2001-11-28 22:07:30 +00:00
structmodule.c Fix typo. 2002-02-14 07:16:30 +00:00
sunaudiodev.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
svmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
symtablemodule.c Fix [ #489673 ] memory leak in test_symtable: Free the st_future slot. 2001-12-06 14:34:58 +00:00
syslogmodule.c
tclNotify.c
termios.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
testcapi_long.h
threadmodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
timemodule.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
timing.h
timingmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
tkappinit.c Mods by Tony Lownds (patch 490100, slightly massaged by me) to make Tkinter 2001-12-09 23:15:56 +00:00
unicodedata.c OS/2 EMX port changes (Modules part of patch #450267): 2002-03-03 02:59:16 +00:00
unicodedata_db.h
unicodename_db.h
xreadlinesmodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
xxmodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00
xxsubtype.c initxxsubtype(): Add a comment to make the magic clearer; I doubt it's 2001-12-17 18:26:19 +00:00
yuv.h
yuvconvert.c
zlibmodule.c Patch supplied by Burton Radons for his own SF bug #487390: Modifying 2001-12-08 18:02:58 +00:00