Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix bug in comparing function objects detected by Sjoerd: | Guido van Rossum | 1997-08-05 | 1 | -3/+9 |
| | | | | | | SystemError: bad argument to internal function caused by comparing NULL pointer default args. | ||||
* | Added _Fini() routines to free up some memory | Guido van Rossum | 1997-08-05 | 3 | -1/+47 |
| | |||||
* | Change the Fini function to only remove otherwise unreferenced strings | Guido van Rossum | 1997-08-05 | 1 | -6/+16 |
| | | | | | | | | | | from the interned table. There are references in hard-to-find static variables all over the interpreter, and it's not worth trying to get rid of all those; but "uninterning" isn't fair either and may cause subtle failures later -- so we have to keep them in the interned table. Also get rid of no-longer-needed insert of None in interned dict. | ||||
* | Added separate free list for cfunction (builtin method) objects, for a | Guido van Rossum | 1997-08-05 | 1 | -7/+30 |
| | | | | few percent speed up. Also add PyCFunction_Fini() to discard it. | ||||
* | Provide a dummy empty directory as f_builtins instead of failing, when | Guido van Rossum | 1997-08-05 | 1 | -7/+22 |
| | | | | | | | no valid directory is passed in. This prevents __del__ to fail when invoked after __builtins__ has already been discarded. Also add PyFrame_Fini() to discard the cache of frames. | ||||
* | Added separate free list for instance method objects, for a few | Guido van Rossum | 1997-08-05 | 1 | -4/+28 |
| | | | | percent speed up. Also add PyMethod_Fini() to discard it. | ||||
* | Added _Py_ResetReferences(), if tracing references. | Guido van Rossum | 1997-08-05 | 1 | -3/+84 |
| | | | | | | | In _Py_PrintReferences(), no longer suppress once-referenced string. Add Py_Malloc and friends and PyMem_Malloc and friends (malloc wrappers for third parties). | ||||
* | Avoid function calls to access the current thread state and builtins | Guido van Rossum | 1997-08-02 | 1 | -4/+2 |
| | | | | | -- the thread state is passed in as an argument and the builtins are a member thereof. | ||||
* | Added internal routine PyString_Fini() which deletes all interned | Guido van Rossum | 1997-08-02 | 1 | -0/+18 |
| | | | | strings. For use in Py_Finalize() only. | ||||
* | New build procedure. | Guido van Rossum | 1997-07-19 | 1 | -8/+9 |
| | |||||
* | Reordered list of methods to hopefully put the most frequently used | Guido van Rossum | 1997-07-13 | 2 | -7/+7 |
| | | | | ones near the front. | ||||
* | Reordered list of methods to hopefully put the most frequently used | Guido van Rossum | 1997-07-13 | 1 | -8/+10 |
| | | | | | | ones near the front. Also added a missing "return -1" to PyFile_WriteString. | ||||
* | Use #include "mymath.h" instead of declaring fabs() explicitly. | Guido van Rossum | 1997-06-03 | 1 | -2/+1 |
| | | | | This should solve a weird problem on the Mac for Jack. | ||||
* | Renamed dict.absorb() (too spungy) to dict.update(). | Guido van Rossum | 1997-06-02 | 1 | -3/+3 |
| | |||||
* | American spelling in doc string. | Guido van Rossum | 1997-06-02 | 1 | -1/+1 |
| | |||||
* | Added dict.absorb() and dict.copy(). | Guido van Rossum | 1997-05-28 | 1 | -6/+70 |
| | |||||
* | PyObject_Compare can raise an exception now. | Guido van Rossum | 1997-05-23 | 3 | -22/+40 |
| | |||||
* | PyObject_Compare can now return an error. Unfortunately, there are a | Guido van Rossum | 1997-05-23 | 1 | -0/+8 |
| | | | | | few places where we don't know how to test for them without losing speed; don't know yet how to handle that. | ||||
* | PyFile_WriteString now returns an error indicator instead of calling | Guido van Rossum | 1997-05-22 | 1 | -12/+18 |
| | | | | PyErr_Clear(). | ||||
* | Fix typo in error checking spotted by Just... | Guido van Rossum | 1997-05-22 | 1 | -1/+1 |
| | |||||
* | Renamed a local variable from 'PyCFunction' (which is also a typedef | Guido van Rossum | 1997-05-20 | 1 | -6/+6 |
| | | | | in methodobject.h) to 'func'. /bin/cc on SunOS 4.x didn't grok this. | ||||
* | Moved PyObject_{Get,Set}Attr to object.c. | Guido van Rossum | 1997-05-20 | 1 | -33/+2 |
| | | | | Fixed two 'return NULL' that should be 'return -1'. | ||||
* | Moved PyObject_{Get,Set}Attr here (from dictobject) and add PyObject_HasAttr. | Guido van Rossum | 1997-05-20 | 1 | -0/+43 |
| | |||||
* | Got rid of c_error in favor of errno (and EDOM/ERANGE). | Guido van Rossum | 1997-05-20 | 1 | -49/+43 |
| | | | | | Assume that errno usage is thread-safe -- most vendors do this by making in a macro that refers to a per-thread storage area. | ||||
* | Got rid of all the last_name_* bogosities. I don't think the | Guido van Rossum | 1997-05-16 | 1 | -53/+34 |
| | | | | | | | complexity saved much any more. A simple benchmark (grail) showed that there were 3 times as many misses as hits, and the same number of times again the code was bypassed altogether due to the existence of setattro/getattro. | ||||
* | Oops, another forgotten renaming: varobject -> PyVarObject. | Guido van Rossum | 1997-05-15 | 1 | -5/+5 |
| | |||||
* | Fix reversed test for failure in PySequence_List() and PySequence_Tuple(). | Guido van Rossum | 1997-05-14 | 1 | -2/+2 |
| | | | | This broke cPickle. | ||||
* | Renamed mappingobject.c to dictobject.c. | Guido van Rossum | 1997-05-13 | 2 | -1036/+3 |
| | |||||
* | Renamed from mappingobject.c to dictobject.c. | Guido van Rossum | 1997-05-13 | 1 | -110/+104 |
| | | | | (Sorry Jack, all your projects will have to be changed again. :-( ) | ||||
* | Faster floating point allocator, same idea as the int allocator. | Guido van Rossum | 1997-05-13 | 1 | -7/+29 |
| | | | | By Aaron Watters. | ||||
* | Add optional 'sizehint' argument to readlines(). After approximately | Guido van Rossum | 1997-05-10 | 1 | -23/+33 |
| | | | | | | | | | | | | this many bytes have been read, readlines stops. Because of buffering, the amount of bytes read is usually at least 8K more than the hint. Also changed read() and readline() to use PyArg_ParseTuple(). (Note that the *previous* checkin also fixed error handling and narrowed the range of thread unblocking for all methods using fread().) | ||||
* | Rewrite readlines() to speed it up -- about a factor of 2 on my | Guido van Rossum | 1997-05-10 | 1 | -25/+89 |
| | | | | Indigo2, reading a 9Meg file from the local disk. | ||||
* | Speed up read() (i.e. read till EOF) considerably by doing a stat() to | Guido van Rossum | 1997-05-09 | 1 | -15/+65 |
| | | | | | | see if we can guess the #bytes until the end of the file. If we can't, increment the buffer size increments up to 0.5Meg to avoid realloc'ing too much. | ||||
* | removed last #ifdef SUPPORT_OBSOLETE_ACCESS bits. | Guido van Rossum | 1997-05-09 | 2 | -103/+5 |
| | |||||
* | Fix by Mark Hammond to enable truncate() on Windows. | Guido van Rossum | 1997-05-06 | 1 | -0/+6 |
| | |||||
* | Checkin of Jack's buffer mods. | Guido van Rossum | 1997-05-05 | 2 | -1/+77 |
| | | | | Not really checked, but didn't fail any tests either... | ||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 1 | -2/+13 |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | ||||
* | Quickly renamed the last directory. | Guido van Rossum | 1997-05-02 | 18 | -3088/+3155 |
| | |||||
* | Quickly renamed. | Guido van Rossum | 1997-04-29 | 1 | -100/+101 |
| | |||||
* | (Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined. | Guido van Rossum | 1997-04-11 | 2 | -0/+6 |
| | |||||
* | Tweaks to keep the Microsoft compiler quiet. | Guido van Rossum | 1997-04-09 | 5 | -18/+18 |
| | |||||
* | Remove unused variable. | Guido van Rossum | 1997-04-09 | 1 | -1/+0 |
| | |||||
* | Remove a redundant XINCREF(value). This caused the reference count of | Guido van Rossum | 1997-04-03 | 1 | -1/+0 |
| | | | | | all locals to be upped by one when `from <module> import <whatever>' was executed. | ||||
* | Several fixes reported by jim F. | Guido van Rossum | 1997-04-02 | 1 | -31/+28 |
| | |||||
* | Get rid of .conj pseudo data attribute for complex numbers. | Guido van Rossum | 1997-04-01 | 1 | -5/+2 |
| | | | | Add __members__ attribute. | ||||
* | Add clear() method to dictionary objects. | Guido van Rossum | 1997-03-21 | 2 | -0/+26 |
| | |||||
* | New long_lshift, without restriction on size of shift count, by Tim Peters. | Guido van Rossum | 1997-03-16 | 1 | -26/+22 |
| | | | | This makes it possible to write 1L<<1000000, memory permitting. | ||||
* | New form of PyFPE_END_PROTECT macro. | Guido van Rossum | 1997-03-14 | 3 | -17/+17 |
| | |||||
* | Add casts to CMPERROR macro to silence SunPro compiler warnings about | Guido van Rossum | 1997-03-05 | 1 | -1/+1 |
| | | | | integer overflow in << operator. | ||||
* | Changes for Lee Busby's SIGFPE patch set. | Guido van Rossum | 1997-02-14 | 3 | -10/+63 |
| | | | | Surround various f.p. operations with PyFPE_{START,END}_PROTECT macros. |