Clear all items from the queue
I read the above answer
Im using python 2.7
import Queue
pq = Queue.PriorityQueue()
pq.clear()
I get the following error:
AttributeError: PriorityQueue instance has no attribute 'clear'
Is there way to easily empty priority queue instead of manually popping out all items? or would re-instantiating work (i.e. it wouldn't mess with join())?