[issue32142] heapq.heappop - documentation misleading or doesn't work

R. David Murray report at bugs.python.org
Thu Nov 30 09:45:01 EST 2017


R. David Murray <rdmurray at bitdance.com> added the comment:

I would suggested following the statement "To create a heap, use a list initialized to [], or you can transform a populated list into a heap via function heapify()." with "Any mutation of the list thereafter must maintain the heap invariant in order for the list to remain a heap."

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32142>
_______________________________________


More information about the Python-bugs-list mailing list