Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Remove a redundant check from list_slice() and list_ass_slice(). | Guido van Rossum | 1998-10-07 | 1 | -4/+0 |
| | | | | Noted by Greg Stein. | ||||
* | Slight rearrangement of code in lookdict() by Vladimir Marangozov, to | Guido van Rossum | 1998-10-06 | 1 | -4/+3 |
| | | | | make a common case slightly faster. | ||||
* | Believe it or not, Solaris 2.6 strtod() can move the end pointer | Guido van Rossum | 1998-10-01 | 1 | -1/+6 |
| | | | | | *beyond* the null byte at the end of the input string, when the input is inf(inity). Discovered by Greg Ward. | ||||
* | Typo reported by Greg Stein: "modifiable" is the correct spelling. | Guido van Rossum | 1998-10-01 | 1 | -1/+1 |
| | |||||
* | In PyFrame_New(), don't set extras to something derived from code | Guido van Rossum | 1998-09-25 | 1 | -1/+2 |
| | | | | | before code has been checked for validity. Discovered by Vladimir Marangozov. | ||||
* | Patches from Greg Stein to support 'P' format in struct module's | Guido van Rossum | 1998-09-18 | 1 | -0/+55 |
| | | | | | native format, as void* (translated to Python int or long). Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c. | ||||
* | Undo victim of careless global substitute ("long long_hash" was | Guido van Rossum | 1998-09-13 | 1 | -1/+1 |
| | | | | | changed to "LONG_LONG_hash" in the list of forward decls). Discovered by Jason Harper. | ||||
* | Patch by Mark Hammond to support 64-bit ints on MS platforms. | Guido van Rossum | 1998-08-25 | 1 | -22/+22 |
| | | | | | | The MS compiler doesn't call it 'long long', it uses __int64, so a new #define, LONG_LONG, has been added and all occurrences of 'long long' are replaced with it. | ||||
* | Better error messages when a sequence is indexed with a non-integer. | Guido van Rossum | 1998-08-13 | 1 | -6/+17 |
| | | | | | | | Previously, this said "unsubscriptable object"; in 1.5.1, the reverse problem existed, where None[''] would complain about a non-integer index. This fix does the right thing in all cases (for get, set and del item). | ||||
* | Two patches by Jason Harper: | Guido van Rossum | 1998-08-11 | 1 | -37/+96 |
| | | | | | | - Faster conversion to string for binary bases: linear instead of quadratic! - Allocate smaller result for certain masking ops, e.g. (1L<<30000) & 1. | ||||
* | Changes for BeOS, QNX and long long, by Chris Herborth. | Guido van Rossum | 1998-08-04 | 1 | -0/+192 |
| | |||||
* | Fix a potential problem in PyLong_FromString(): could fall through the | Guido van Rossum | 1998-08-04 | 1 | -0/+2 |
| | | | | for loop with z==NULL but continue to reference z later. | ||||
* | Better error messages when raising ValueError for int and long | Guido van Rossum | 1998-08-04 | 1 | -6/+9 |
| | | | | | literals. (The previous version of this code would not show the offending input, even though there was code that attempted this.) | ||||
* | Fix a memory leak -- the cached values of __getattr__ etc. were never | Guido van Rossum | 1998-08-04 | 1 | -0/+3 |
| | | | | freed. | ||||
* | PyFile_FromString(): If an exception occurs, pass in the filename that | Barry Warsaw | 1998-07-23 | 1 | -1/+2 |
| | | | | | was used so it's reflected in the IOError. Call PyErr_SetFromErrnoWithFilename(). | ||||
* | When comparing objects, always check that tp_compare is not NULL | Guido van Rossum | 1998-07-21 | 1 | -3/+7 |
| | | | | | | before calling it. This check was there when the objects were of the same type *before* coercion, but not if they initially differed but became the same *after* coercion. | ||||
* | Avoid using calloc(). This triggered an obscure bug on multiprocessor | Guido van Rossum | 1998-07-16 | 1 | -1/+2 |
| | | | | | | | Sparc Solaris 2.6 (fully patched!) that I don't want to dig into, but which I suspect is a bug in the multithreaded malloc library that only shows up when run on a multiprocessor. (The program wasn't using threads, it was just using the multithreaded C library.) | ||||
* | Add special case to PySequence_List() so that list() of a list is | Guido van Rossum | 1998-07-10 | 1 | -0/+6 |
| | | | | | | faster (using PyList_GetSlice()). Also added a test for a NULL argument, as with PySequence_Tuple(). (Hmm... Better names for these two would be PyList_FromSequence() and PyTuple_FromSequence(). Oh well.) | ||||
* | Changed PySequence_List() and PySequence_Tuple() to support | Guido van Rossum | 1998-07-10 | 1 | -27/+38 |
| | | | | | | | | | "indefinite length" sequences. These should still have a length, but the length is only used as a hint -- the actual length of the sequence is determined by the item that raises IndexError, which may be either smaller or larger than what len() returns. (This is a novelty; map(), filter() and reduce() only allow the actual length to be larger than what len() returns, not shorter. I'll fix that shortly.) | ||||
* | Move the definition of PyMethodObject to classobject.h, so it can define | Guido van Rossum | 1998-07-10 | 1 | -8/+0 |
| | | | | macros for more efficient access to the fields. | ||||
* | Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject | Guido van Rossum | 1998-07-10 | 1 | -6/+0 |
| | | | | to the .h file and add macros there for inlined access to the fields. | ||||
* | Marc-Andre Lemburg's patch to support instance methods with other | Guido van Rossum | 1998-07-08 | 1 | -16/+21 |
| | | | | callable objects than regular Pythonm functions as their im_func. | ||||
* | Recompute the special getattr/setattr/delattr cache slots after | Guido van Rossum | 1998-07-08 | 1 | -7/+13 |
| | | | | changing __dict__ *or* __bases__. | ||||
* | Added doc strings for methods and a new pop() method. | Guido van Rossum | 1998-06-30 | 1 | -7/+54 |
| | |||||
* | New feature: if the object's type has a non-NULL tp_doc field, that | Guido van Rossum | 1998-06-27 | 1 | -2/+9 |
| | | | | | | is returned as the object's __doc__ attribute. (If only the list of methods would be referenced from the type...) | ||||
* | Slight rearrangement of some code to make it faster, by Vladimir | Guido van Rossum | 1998-06-26 | 1 | -9/+15 |
| | | | | Marangozov. | ||||
* | Add check in long-to-int conversion for at least one digit. | Guido van Rossum | 1998-06-22 | 1 | -0/+7 |
| | |||||
* | Fix the tests for various anomalies in the string-to-numbers | Guido van Rossum | 1998-06-22 | 1 | -12/+8 |
| | | | | | | conversions. Formerly, for example, int('-') would return 0 instead of raising ValueError, and int(' 0') would raise ValueError (complaining about a null byte!) instead of 0... |