Popular recipes by Max Moroz http://code.activestate.com/recipes/users/4168744/2015-04-16T12:11:34-07:00ActiveState Code RecipesHashing Nonhashable / Mutable Objects (Python) 2015-04-16T12:11:34-07:00Max Morozhttp://code.activestate.com/recipes/users/4168744/http://code.activestate.com/recipes/579047-hashing-nonhashable-mutable-objects/ <p style="color: grey"> Python recipe 579047 by <a href="/recipes/users/4168744/">Max Moroz</a> (<a href="/recipes/tags/hash/">hash</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python3/">python3</a>). Revision 2. </p> <p>This class is intended as a wrapper for non-hashable objects (such as lists, dictionaries, etc.) in situations where the object is known to be immutable. Example: memoization of function arguments.</p> <p>Feedback much appreciated, I will update to reflect any comments.</p>