Return a dictionary representation of the node's contents
(self)
| 24 | return fstr.format(self.key, self.val, self.priority, self.entry_id) |
| 25 | |
| 26 | def to_dict(self): |
| 27 | """Return a dictionary representation of the node's contents""" |
| 28 | d = self.__dict__ |
| 29 | d["id"] = "PQNode" |
| 30 | return d |
| 31 | |
| 32 | def __gt__(self, other): |
| 33 | if not isinstance(other, PQNode): |