| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2008-10-08 | #3935: properly support list subclasses in the C impl. of bisect. | Georg Brandl | -2/+2 | |
| Patch reviewed by Raymond. | ||||
| 2008-07-24 | Finish conversion from int to Py_ssize_t. | Raymond Hettinger | -23/+23 | |
| 2008-07-10 | Issue 3301: Bisect functions behaved badly when lo was negative. | Raymond Hettinger | -0/+8 | |
| 2006-02-27 | More unconsting. | Martin v. Löwis | -4/+4 | |
| 2006-02-16 | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | -2/+2 | |
| 2005-12-10 | Add const to several API functions that take char *. | Jeremy Hylton | -5/+4 | |
| In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *. | ||||
| 2005-10-05 | SF #1313496: bisect C replacement doesn't accept named args | Raymond Hettinger | -22/+26 | |
| 2004-08-02 | Any call to insort_{left,right} with a non-list leaked a reference to None | Michael W. Hudson | -6/+10 | |
| (or to whatever the 'insert' method chose to return). | ||||
| 2004-01-05 | SF Patch #864863: Bisect C implementation | Raymond Hettinger | -0/+228 | |
| (Contributed by Dmitry Vasiliev.) | ||||
