title: is there a data structure equivalent to a non-unique set in python?
body: <p>I have a very large list of lists of integers which I would like to "hash()" to improve search speed.  The resulting hashed value for each of the nested lists needs to be independent of the order of the integers and only on the values in the list.  This suggested a (frozen) set as a suitable data structure to hash.  However, I need to keep every integer value, whether or not duplicated, which is a show-stopper for sets.</p>
  
  <p>So, that left me ordering the list, converting to a tuple and hashing which is quite slow and I imagine there are better strategies.  </p>
  
  <p>I'd appreciate any suggestions on how to do this more efficiently.</p>