Daniel Wong added the comment: from the peanut gallery:
This looks right to me; you are seeing that PriorityQueue is trying to compare dicts, because that's how tuple comparison works: it is lexicographic. Since the first element of the two tuples that you are trying to insert have the same value, comparison of the two tuple reduces to comparing the second elements. Your work around also looks good to me. ---------- components: +Library (Lib) -Interpreter Core nosy: +allyourcode _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17794> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com