cpython/Objects
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
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Fix leak of NotImplemented in previous checkin to PyNumber_Add(). 2002-03-08 21:28:54 +00:00
bufferobject.c Fix for Bug #216405: 2001-10-19 13:49:35 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c Be smarter about clearing the weakref lists for instances, instance methods, 2001-10-26 17:56:51 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Declare real and imag as read-only attributes. 2002-02-08 21:26:07 +00:00
descrobject.c SF bug #493561: incorrect format string descrobject.c (Neal Norwitz) 2001-12-15 05:00:30 +00:00
dictobject.c SF bug #491415 PyDict_UpdateFromSeq2() unused 2001-12-11 18:51:08 +00:00
fileobject.c OS/2 EMX port changes (Objects part of patch #450267): 2002-02-26 11:36:35 +00:00
floatobject.c SF bug 525705: [2.2] underflow raise OverflowException. 2002-03-09 04:58:24 +00:00
frameobject.c Fix memory leak in dict_to_map(), SF bug [ #485152 ] memory leak in test_scope. 2001-12-06 15:48:16 +00:00
funcobject.c Portability fix: Not every compiler implements the extension of 2001-12-17 11:39:56 +00:00
intobject.c Bugfix candidate. 2002-02-01 15:34:10 +00:00
iterobject.c Patch #427190: Implement and use METH_NOARGS and METH_O. 2001-08-16 13:15:00 +00:00
listobject.c Fix of SF bug #475877 (Mutable subtype instances are hashable). 2001-12-03 16:32:18 +00:00
longobject.c _PyLong_Copy(): was creating a copy of the absolute value, but should 2002-03-02 04:18:04 +00:00
methodobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
moduleobject.c Add missing "static" declarations (found by "make smelly"). 2001-10-21 22:28:58 +00:00
object.c Whether platform malloc(0) returns NULL has nothing to do with whether 2002-03-02 08:43:19 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c Fix spelling mistakes. Bugfix candidates. 2002-01-29 00:53:41 +00:00
sliceobject.c Add values to tp_getattro and tp_flags so that dir(Ellipsis) will 2001-10-30 02:40:52 +00:00
stringobject.c %#x/%#X format conversion cleanup (see patch #450267): 2002-02-28 11:38:24 +00:00
structseq.c Guido pointed out that I was missing a couple decrefs. 2002-03-07 15:13:40 +00:00
tupleobject.c _PyTuple_Resize(): this dumped core on tuple(globals()) for me. Turns 2001-12-07 20:00:04 +00:00
typeobject.c Allow __doc__ to be of arbitrary type. Patch by James Henstridge, 2002-02-18 17:46:48 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c %#x/%#X format conversion cleanup (see patch #450267): 2002-02-28 11:38:24 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
weakrefobject.c proxy_compare(): Make sure that we unwrap both objects being compared if 2001-12-19 16:44:30 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00