DanielStutzbach / blist

A list-like type with better asymptotic performance and similar performance on small lists
Other
310 stars 36 forks source link

Add heapq support for blist? #76

Open idf opened 9 years ago

idf commented 9 years ago
>>> a = blist([1, 2, 3])
>>> heapq.heapify(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: heap argument must be a list

Is there any plan to add heapq support for blist?

tritium21 commented 8 years ago

You would have to re-implement the heapq module as it is the standard library that is issuing that error, not blist.