title: Hashing a dictionary?
body: <p>For caching purposes I need to generate a cache key from GET arguments which are present in a dict.</p>
  
  <p>Currently I'm using <code>sha1(repr(sorted(my_dict.items())))</code> (<code>sha1()</code> is a convenience method that uses <a href="https://docs.python.org/3/library/hashlib.html" rel="noreferrer">hashlib</a> internally) but I'm curious if there's a better way.</p>