Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over | Thomas Wouters | 2006-02-16 | 1 | -2/+2 |
| | | | | | lists and call Py_ssize_t-using helpers. All other code in this module was already adapted to Py_ssize_t. | ||||
* | Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t | Thomas Wouters | 2006-02-16 | 1 | -1/+1 |
| | | | | | | | has been applied fairly arbitrarily in this module (nsmallest uses Py_ssize_t, nlargest does not) and it probably deserves a more complete review. Fixes heapq.nsmallest() always returning the empty list (on platforms with 64-bit ssize_t/long) | ||||
* | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | 2006-02-16 | 1 | -11/+13 |
| | |||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | Plug a leak and beef-up test coverage. | Raymond Hettinger | 2004-09-28 | 1 | -4/+12 |
| | |||||
* | Fix erroneous docstring comment. | Raymond Hettinger | 2004-09-06 | 1 | -2/+3 |
| | |||||
* | Improve the documented advice on how to best use heapq.heapreplace(). | Raymond Hettinger | 2004-06-20 | 1 | -1/+2 |
| | |||||
* | Reverse argument order for nsmallest() and nlargest(). | Raymond Hettinger | 2004-06-15 | 1 | -2/+2 |
| | | | | Reads better when the iterable is a generator expression. | ||||
* | Fixup error exits in nlargest() and nsmallest(). | Raymond Hettinger | 2004-06-13 | 1 | -8/+16 |
| | |||||
* | Install C version of heapq.nsmallest(). | Raymond Hettinger | 2004-06-13 | 1 | -5/+162 |
| | |||||
* | Install C version of heapq.nlargest(). | Raymond Hettinger | 2004-06-12 | 1 | -0/+76 |
| | | | | Maxheap version of heapq.smallest() is forthcoming. | ||||
* | Correct the file name of _heapq module. | Hye-Shik Chang | 2004-04-25 | 1 | -0/+364 |