Open kgashok opened 4 years ago
https://docs.python.org/3/library/functools.html#functools.total_ordering
http://bit.ly/totalOrderExample is used to build a wrapper to implement a max heap. Perfect use case.
https://docs.python.org/3/library/functools.html#functools.total_ordering