title: Passing A Variable Pointer Into A Dictionary in Python
body: <p>I am trying to update a class from within a dictionary context but the dictionary gets instantialized with the value of the class attributes not the "pointer" to the variables.</p>
  
  <pre class="lang-py prettyprint-override"><code>class SomeClass():
      status = 0
  
  new_entry = SomeClass()
  
  print (new_entry.status) #prints 0 - expected
  
  data_attribute ={
      "status":[1407,new_entry.status,0]
  }
  data_attribute["status"][1] = 123
  
  print (data_attribute["status"]) # prints 123 - expected
  
  print (new_entry.status) # prints 0 - not desired
  </code></pre>
  
  <p>The problem is I don't know how to pass a "pointer" to the class attribute "status" such that updating it in the dictionary updates it in the main class structure. I expect there is something stupid I do not understand OR I am doing this in completely the wrong way but any help would be appreciated.</p>