https://pantsbuild.org/ logo
#development
Title
# development
b

bored-art-40741

10/27/2015, 2:16 AM
Copy code
def hashable(value):
          if isinstance(value, dict):
            return tuple(sorted((k, hashable(v)) for k, v in value.items()))
          elif isinstance(value, list):
            return tuple(hashable(v) for v in value)
          else:
            return value