I am using
from queue import PriorityQueue
pq = PriorityQueue()
pq.put((3, "Harry"))
pq.put((4, "Harry"))
pq.put((2, "Mary"))
This now creates two entries of "Harry". Am I supposed to remove all keys one by one (for searching) and then do a put to update the value?