summaryrefslogtreecommitdiffstats
path: root/Modules/_heapqmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter overThomas Wouters2006-02-161-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_tThomas Wouters2006-02-161-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öwis2006-02-161-11/+13
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Plug a leak and beef-up test coverage.Raymond Hettinger2004-09-281-4/+12
|
* Fix erroneous docstring comment.Raymond Hettinger2004-09-061-2/+3
|
* Improve the documented advice on how to best use heapq.heapreplace().Raymond Hettinger2004-06-201-1/+2
|
* Reverse argument order for nsmallest() and nlargest().Raymond Hettinger2004-06-151-2/+2
| | | | Reads better when the iterable is a generator expression.
* Fixup error exits in nlargest() and nsmallest().Raymond Hettinger2004-06-131-8/+16
|
* Install C version of heapq.nsmallest().Raymond Hettinger2004-06-131-5/+162
|
* Install C version of heapq.nlargest().Raymond Hettinger2004-06-121-0/+76
| | | | Maxheap version of heapq.smallest() is forthcoming.
* Correct the file name of _heapq module.Hye-Shik Chang2004-04-251-0/+364