[issue17834] Add Heap (and DynamicHeap) classes to heapq module

Serhiy Storchaka report at bugs.python.org
Fri Apr 26 17:52:39 CEST 2013


Serhiy Storchaka added the comment:

>From my multilingual experience I can say that priority queue is very rarely used type of collections (but if it needed it is very usefull). On one hand, Python stdlib already contains one such type, and this type will be good enough in non-performance-critical applications. On other hand, a non-locked implementation using heapq is trivial (just encapsulate a list inside a class), no one will implement it wrong (if do not over-complicate the interface). I don't see the need for yet one priority queue. The presence of two very similar types in the stdlib will lead to confusion.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17834>
_______________________________________


More information about the Python-bugs-list mailing list