cpython/Objects
Guido van Rossum 65e0b99b61 SF patch #103158 by Greg Ball: Don't do unsafe arithmetic in xrange
object.

This fixes potential overflows in xrange()'s internal calculations on
64-bit platforms.  The fix is complicated because the sq_length slot
function can only return an int; we want to support
xrange(sys.maxint), which is a 64-bit quantity on most 64-bit
platforms (except Win64).  The solution is hacky but the best
possible: when the range is that long, we can use it in a for loop but
we can't ask for its length (nor can we actually iterate beyond
2**31-1, because the sq_item slot function has the same restrictions
on its arguments.  Fixing those restrictions is a project for another
day...
2001-01-15 18:58:56 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Massive changes as per PEP 208. Read it for details. 2001-01-04 01:39:06 +00:00
bufferobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
classobject.c Make instances a new style number type. See PEP 208 for details. Instance 2001-01-04 01:43:46 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Rationalize use of limits.h, moving the inclusion to Python.h. 2000-09-26 05:46:01 +00:00
dictobject.c dict_update has two boundary conditions: a.update(a) and a.update({}) 2001-01-03 22:34:59 +00:00
fileobject.c Speed getline_via_fgets(), by supplying two "fast paths", although one is 2001-01-15 10:36:56 +00:00
floatobject.c Fix a silly bug in float_pow. Sorry Tim. 2001-01-08 06:29:50 +00:00
frameobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
funcobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
intobject.c Make int a new style number type. Sequence repeat is now done here 2001-01-04 01:45:33 +00:00
listobject.c fix leak 2001-01-03 22:32:16 +00:00
longobject.c Make long a new style number type. Sequence repeat is now done here 2001-01-04 01:46:03 +00:00
Makefile.in Update dependencies per /F. 2000-11-28 12:09:18 +00:00
methodobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
moduleobject.c Add garbage collection for module objects. Closes patch #102939 and 2001-01-02 15:58:27 +00:00
object.c Changes for PEP 208. PyObject_Compare has been rewritten. Instances no 2001-01-04 01:48:10 +00:00
rangeobject.c SF patch #103158 by Greg Ball: Don't do unsafe arithmetic in xrange 2001-01-15 18:58:56 +00:00
sliceobject.c Test for NULL returned from PyObject_NEW(). 2000-12-14 15:09:46 +00:00
stringobject.c [ Patch #102852 ] Make % error a bit more informative by indicates the 2000-12-15 13:07:46 +00:00
tupleobject.c Simplify _PyTuple_Resize by not using the tuple free list and dropping 2000-10-05 19:36:49 +00:00
typeobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
unicodectype.c unicode database compression, step 3: 2000-09-25 21:48:13 +00:00
unicodeobject.c This patch adds a new feature to the builtin charmap codec: 2001-01-06 14:59:58 +00:00
unicodetype_db.h Added 38,642 missing characters to the Unicode database (first-last 2000-11-03 20:24:15 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00