title: Python: Freeze dict keys after creation
body: <p>Is it possible to "freeze" a python dict after creation so that it's impossible to add new keys to it? It would only be possible to change existing key values.</p>
  
  <p>If not, how do you know when you are changing an existing keyvalue pair, and when you are adding a new one?</p>