Skip to content

Instantly share code, notes, and snippets.

@haxney
Created February 16, 2012 03:45
Show Gist options
  • Save haxney/1841760 to your computer and use it in GitHub Desktop.
Save haxney/1841760 to your computer and use it in GitHub Desktop.
tricking python's set
a == b #=> false
hash(a) == hash(b) #=> true
ab = {a, b}
ba = {b, a}
ab == ba #=> true
list(ab) == list(ba) #=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment