Discovered that for integers in Python, hash(x) == x (most of the time). Seems elegant, but I was not expecting it!