code: def updateitem(self, key, new_val):
          
          if key not in self._position:
              raise KeyError(key)
          self[key] = new_val
docs: Update the priority value of an existing item. Raises ``KeyError`` if
          key is not in the pqdict.