]> granicus.if.org Git - python/commit
Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
authorThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 17:32:54 +0000 (17:32 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 17:32:54 +0000 (17:32 +0000)
commited6254acf289839467a77419566b475f5950f475
tree347536c6dceab93f1c4af3904c29b713828ac0a5
parent7a2f83b706b3b8ba4aa62b0e125fb604c7f6b48e
Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
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)
Modules/_heapqmodule.c