This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dupeljan
Recipients docs@python, dupeljan
Date 2020-10-30.06:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604040034.11.0.135907036135.issue42201@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-30 06:40:34dupeljansetrecipients: + dupeljan, docs@python
2020-10-30 06:40:34dupeljansetmessageid: <1604040034.11.0.135907036135.issue42201@roundup.psfhosted.org>
2020-10-30 06:40:33dupeljanlinkissue42201 messages
2020-10-30 06:40:33dupeljancreate