heapq push TypeError: ‘
heapq will use the <= operator on whatever stuff you put into it. Tuples are compared position by position: the first item of the first tuple is compared to the first item of the second tuple; if they are not equal (i.e. the first is greater or smaller than the second) then that’s the result … Read more