New submission from Georg Brandl <ge...@python.org>: On the python-docs mailing list, a user suggested to rewrite the first paragraph of the heapq docs like this. Are you okay with this change, Raymond?
Heaps are trees for which every parent node has a value less than or equal to any of its children. This implementation uses arrays for which ``heap[k] <= heap[2*k+1]`` and ``heap[k] <= heap[2*k+2]`` for all *k*, counting elements from zero. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that its smallest element is always the root, ``heap[0]``. ---------- assignee: rhettinger messages: 122203 nosy: georg.brandl, rhettinger priority: normal severity: normal status: open title: heapq docs clarification _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10511> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com