In this article I explore functools.cmp_to_key and propose a possible implementation.
functools.cmp_to_key
Today I learned that the hash of an integer is the integer itself, except for -1. The hash of -1 is -2.
-1
-2
Russian mathematician Grigori Perelman declined a $1,000,000 prize after solving one of the seven Millenium Prize Problems.