While browsing Reddit the other day waiting for my code to compile , I ran across this question on r/Python:
is hash(-1) == hash(-2) an easter egg? Wait, is that really true?
$ python Python 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> hash(-1) -2 >>> hash(-2) -2 >>> hash(-1) == hash(-2) True Yes, it is.