I need to use PyPy because speed is of the essence. I want to use priority queue and normally with Python I’d use queue
module but PyPy gives me an error.
JavaScript
x
2
1
import queue
2
error:
JavaScript
1
3
1
import queue
2
ImportError: No module named queue
3
Why is this module not available? I thought that PyPy is compatible with Python’s standard library.
Advertisement
Answer
Thanks to @user2357112supportsMonica I have the solution. Just use heapq
.