These are some tools to help experiment with the behavior of Python’s set
type. It’s behavior in the face of hash collisions is… weird. Consider the
following:
[{i, i + 8} for i in range(6)] #=> [{8, 0}, {9, 1}, {10, 2}, {3, 11}, {4, 12}, {13, 5}]
That’s wacky.
- This Pycon talk contains all of the fancy dict-manipulation code