nvictus/priority-queue-dictionary — pull request #3 by dkavraal (2014-03-12 02:52:51+00:00)
Title: update sort position of one item only by key

If you use pqdict for sorting objects and object-values change without usage of "setitem", the sorted list becomes mass. You can update with this new method "relocate(key)" so that the list remains sorted.

(Main) Sorting part is copy-paste from __setitem__ method from just above the piece.

Check it out.