Message379922
In Priority queue realization in docs https://docs.python.org/3/library/heapq.html there is no appointments that priority can be equal and the task can have different type. For example, if you store number of graph node in your priority queue, than it is possible to get "TypeError: '<' not supported between instances of 'int' and 'str'", because inside heappop there is comparison between elements, and if the fist elements the same, than it compare tasks, which can be tagged as removed and has '<removed-task>' value as opposed to number of node, which is int. |
|
Date |
User |
Action |
Args |
2020-10-30 06:40:34 | dupeljan | set | recipients:
+ dupeljan, docs@python |
2020-10-30 06:40:34 | dupeljan | set | messageid: <1604040034.11.0.135907036135.issue42201@roundup.psfhosted.org> |
2020-10-30 06:40:33 | dupeljan | link | issue42201 messages |
2020-10-30 06:40:33 | dupeljan | create | |
|