Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mainlining the string_methods branch. See branch revision log | Barry Warsaw | 1999-10-12 | 4 | -120/+1199 |
| | | | | messages for specific changes. | ||||
* | Fix PR#66. Solution: add error checking around l_divmod() calls in | Guido van Rossum | 1999-10-11 | 1 | -4/+18 |
| | | | | long_pow(). | ||||
* | Fix for PR#98 (Adrian Eyre) -- in instancemethod_repr, the funcname | Guido van Rossum | 1999-10-11 | 1 | -1/+1 |
| | | | | object is DECREFed too early. | ||||
* | Patch by Tim Peters fixing PR#88: | Guido van Rossum | 1999-09-27 | 1 | -1/+7 |
| | | | | Integer division can crash under Windows. | ||||
* | Patch by Tim Peters fixing PR#89: | Guido van Rossum | 1999-09-27 | 1 | -0/+5 |
| | | | | long(+/- infinity) returns nonsense. | ||||
* | Patch by Mark Hammond to avoid certain header files on Windows/CE. | Guido van Rossum | 1999-08-27 | 1 | -1/+10 |
| | |||||
* | PyBuffer_New(): Raise ValueError if size is negative (the other | Fred Drake | 1999-08-04 | 1 | -1/+6 |
| | | | | | | | constructors didn't miss this). Raise MemoryError if malloc() fails, instead of just returning NULL. | ||||
* | Mark Favas was quick to note that the last checkin divides by zero | Guido van Rossum | 1999-07-13 | 1 | -1/+1 |
| | | | | | when n == 0... So divide by a->ob_size instead which was already tested for 0. | ||||
* | Appropriate overflow checks so that things like sys.maxint*(1,) can't | Guido van Rossum | 1999-07-12 | 1 | -3/+13 |
| | | | | dump core. | ||||
* | When deallocating a list, DECREF the items from the end back to the start. | Guido van Rossum | 1999-06-09 | 1 | -1/+6 |
| | |||||
* | Fix bug discovered by John W. Shipman -- when the width of a format | Guido van Rossum | 1999-06-07 | 1 | -2/+4 |
| | | | | | | | | specifier came from an int expression instead of a constant in the format, a negative width was truncated to zero instead of taken to mean the same as that negative constant plugged into the format. E.g. "(%*s)" % (-5, "foo") yielded "(foo)" while "(%-5s)" yields "(foo )". Now both yield the latter -- like sprintf() in C. | ||||
* | Tim Peters writes: | Guido van Rossum | 1999-05-06 | 1 | -7/+19 |
| | | | | | | | | | | 1. Fixes float divmod so that the quotient it returns is always an integral value. 2. Fixes float % and float divmod so that the remainder always gets the right sign (the current code uses a "are the signs different?" test that doesn't work half the time <wink> when the product of the divisor and the remainder underflows to 0). | ||||
* | Improve text of some error messages, as suggested by Sean Reifschneider. | Guido van Rossum | 1999-04-19 | 1 | -2/+3 |
| | |||||
* | casts for picky compilers. | Guido van Rossum | 1999-04-10 | 1 | -1/+1 |
| | |||||
* | Vladimir Marangozov contributed updated comments. | Guido van Rossum | 1999-03-24 | 1 | -11/+8 |
| | |||||
* | Folded long lines. | Guido van Rossum | 1999-03-24 | 1 | -9/+18 |
| | |||||
* | Fix a problem with Vladimir's PyFloat_Fini code: clear the free list; if | Guido van Rossum | 1999-03-19 | 1 | -5/+17 |
| | | | | | a block cannot be freed, add its free items back to the free list. This is necessary to avoid leaking when Python is reinitialized later. | ||||
* | Fix a problem with Vladimir's PyInt_Fini code: clear the free list; if | Guido van Rossum | 1999-03-19 | 1 | -5/+27 |
| | | | | | | a block cannot be freed, add its free items back to the free list, and add its valid ints back to the small_ints array if they are in range. This is necessary to avoid leaking when Python is reinitialized later. | ||||
* | Added check for negative offset for PyBuffer_FromObject and check for | Guido van Rossum | 1999-03-19 | 1 | -1/+13 |
| | | | | negative size for PyBuffer_FromMemory. Greg Stein. | ||||
* | Vladimir has restructured his code somewhat so that the blocks are now | Guido van Rossum | 1999-03-12 | 2 | -51/+97 |
| | | | | | | | represented by an explicit structure. (There are still too many casts in the code, but that may be unavoidable.) Also added code so that with -vv it is very chatty about what it does. | ||||
* | OK, try again. Vladimir gave me a fix for the alignment bus error, | Guido van Rossum | 1999-03-12 | 1 | -7/+56 |
| | | | | | so here's his patch again. This time it works (at least on Solaris, Linux and Irix). | ||||
* | Alas, Vladimir's patch caused a bus error (probably double | Guido van Rossum | 1999-03-11 | 1 | -56/+7 |
| | | | | alignment?), and I didn't test it. Withdrawing it for now. | ||||
* | Patch by Vladimir Marangoz to allow freeing of the allocated blocks of | Guido van Rossum | 1999-03-10 | 1 | -7/+56 |
| | | | | floats on finalization. | ||||
* | Patch by Vladimir Marangoz to allow freeing of the allocated blocks of | Guido van Rossum | 1999-03-10 | 1 | -15/+64 |
| | | | | integers on finalization. | ||||
* | Patch by Chris Petrilli to display the origin of a module in its | Guido van Rossum | 1999-02-15 | 1 | -3/+30 |
| | | | | repr() -- either "(builtin)" or "from '<filename>'". | ||||
* | Correct typo (Py_MethodDef doesn't exist). Reported by Uwe Zessin. | Guido van Rossum | 1999-01-29 | 1 | -1/+1 |
| | |||||
* | PyLong_FromString(): Nailed a small memory leak. In the str==start | Barry Warsaw | 1999-01-27 | 1 | -0/+1 |
| | | | | | test, we forgot that z is still pointing to a real live object. DECREF() it before returning. | ||||
* | Ai! complex_nonzero() has && which should be ||, else decidedly | Guido van Rossum | 1999-01-25 | 1 | -1/+1 |
| | | | | | non-zero things like 5j and complex(1,0) are considered to be zero/false. Tim Peters. | ||||
* | Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit | Guido van Rossum | 1999-01-14 | 1 | -1/+1 |
| | | | | | | ints. (In theory, other variables should be widened to long as well, but this won't ever be needed, since the len of a list is still an int.) | ||||
* | Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int. | Guido van Rossum | 1999-01-14 | 1 | -1/+5 |
| | |||||
* | Patch by Charles Waldman -- remove unneeded and even harmful test for | Guido van Rossum | 1999-01-10 | 1 | -10/+0 |
| | | | | | float to the negative power (which is already and better done in floatobject.c.) | ||||
* | Use 'xrange', not 'range', in error messages. Reported by Nathan Sullivan. | Guido van Rossum | 1999-01-09 | 1 | -3/+3 |
| | |||||
* | Need to include <sys/types.h> for off_t. | Guido van Rossum | 1999-01-07 | 1 | -0/+2 |
| | |||||
* | Changes for long file support by Steve Clift. | Guido van Rossum | 1999-01-06 | 1 | -11/+53 |
| | | | | (This also redoes my previous patch, but better.) | ||||
* | Changes for long file support by Steve Clift. | Guido van Rossum | 1999-01-06 | 1 | -18/+0 |
| | | | | (Really: moved a bunch of defs to longobject.h.) | ||||
* | Fix two places (seek and truncate) where a cascade of PyArg_Parse | Guido van Rossum | 1999-01-04 | 1 | -11/+9 |
| | | | | | calls was used instead of a single PyArg_ParseTuple call with an optional argument. | ||||
* | As noted by Per Cederqvist, new_buffersize() sometimes returns the | Guido van Rossum | 1998-12-11 | 1 | -2/+11 |
| | | | | | | | buffer increment, and sometimes the new buffer size. Make it do what its name says, and fix the one place where this matters to the caller. Also add a comment explaining why we call lseek() and then ftell(). | ||||
* | When tracing references, reset the type and size of tuples allocated | Guido van Rossum | 1998-12-11 | 1 | -0/+4 |
| | | | | | from the fast free list -- the type (at least) is reset by _Py_Dealloc(). | ||||
* | Remove prototype for PyOS_strtol -- Chris Herborth. | Guido van Rossum | 1998-12-10 | 1 | -1/+0 |
| | |||||
* | When comparing bound methods, use identity test on the objects, | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | not equality test. | ||||
* | Remove dead code discovered by Vladimir Marangozov. | Guido van Rossum | 1998-11-16 | 1 | -4/+2 |
| | |||||
* | Make tuples less hungry -- an extra item was allocated but never used. | Guido van Rossum | 1998-11-16 | 1 | -1/+1 |
| | | | | Tip by Vladimir Marangozov. | ||||
* | A Py_DECREF(f) is missing in PyFrame_New for the error case when | Guido van Rossum | 1998-10-19 | 1 | -4/+4 |
| | | | | the `builtins' initialization fails. Vladimir Marangozov. | ||||
* | Replace fprintf(stderr, ...) with PySys_WriteStderr(...). | Guido van Rossum | 1998-10-12 | 1 | -2/+2 |
| | |||||
* | listextend(): New method which implements L.extend(L2). | Barry Warsaw | 1998-10-09 | 1 | -0/+74 |
| | |||||
* | Remove unreachable code. (Sjoerd) | Guido van Rossum | 1998-10-09 | 1 | -8/+0 |
| | |||||
* | Greg Stein: Implement the new bf_getcharbuffer function, indicating | Guido van Rossum | 1998-10-08 | 2 | -4/+36 |
| | | | | that (as far as the data type is concerned!) this is character data. | ||||
* | Make gcc -Wall happy. | Guido van Rossum | 1998-10-07 | 1 | -5/+4 |
| | |||||
* | Add Greg Stein's buffer object API. | Guido van Rossum | 1998-10-07 | 1 | -2/+3 |
| | |||||
* | Add Greg Stein's buffer object API. | Guido van Rossum | 1998-10-07 | 1 | -0/+599 |
| |