heapq

heapq push TypeError: '<' not supported between instances

heapq push TypeError: '<' not supported between instances Question: I am working in python and I have some problem with heapq. When I push an element into the heap I receive this error : TypeError: ‘<‘ not supported between instances of ‘Point’ and ‘Point’ Point is my internal class. I push a tuple formed by …

Total answers: 2