title: How to create an immutable dictionary in python?
body: <p>I want to <code>subclass</code> <code>dict</code> in python such that all the dictionaries of the sub-class are immutable.</p>
  
  <p>I don't understand how does <code>__hash__</code> affects the immutability, since in my understanding it just signifies the <strong>equality</strong> or <strong>non-equality</strong> of objects !</p>
  
  <p>So, can <code>__hash__</code> be used to implement immutability ? How ?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>Objective is that common response from an API is available as a dict, which has to be shared as a global variable. So, that needs to be intact no matter what ?</p>