cpython: 563b27bef79f (original) (raw)
Mercurial > cpython
changeset 84691:563b27bef79f
Issue #18408: Fix heapq.heappop(), handle PyList_SetSlice() failure [#18408]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Wed, 17 Jul 2013 21:50:21 +0200 |
parents | 4d3bb9763bf9 |
children | 6fb3414710ab |
files | Modules/_heapqmodule.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-)[+] [-] Modules/_heapqmodule.c 5 |
line wrap: on
line diff
--- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -168,7 +168,10 @@ heappop(PyObject *self, PyObject *heap) lastelt = PyList_GET_ITEM(heap, n-1) ; Py_INCREF(lastelt);