0

This question describes several solutions for producing a hash value for a Python dictionary.

Some solutions work only with strings. One works with non-strings, but uses the hash function, which is not cross-platform.

Is there a simple cross-platform hash of a Python dict?

I'm using Python 3.

Community
  • 1
  • 1
dfrankow
  • 20,191
  • 41
  • 152
  • 214
  • 1
    I'm not sure, but you may be using the term "cross-platform" in a different meaning than it is customary - this may cause much confusion when reading your question. – BartoszKP Mar 31 '17 at 16:36
  • No, unless you count copouts like `def dhash(d): return 0` or `if idonthavehandlingfor(thing): return 0 else: ...`. – user2357112 Mar 31 '17 at 16:38

0 Answers0