title: Python changing ClassA instance variables in ClassB
body: <p>I am trying to load a whole class instance via dill rather than dump and load each class variable one at a time.</p>
  
  <p>Can anybody show me how to do this:</p>
  
  <pre><code>class Object(object):
      pass
  
  class ClassA:
      def __init__(self):
          self.DATA = "Initial"
  
  class ClassB:
      def __init__(self, CA):
          self.CA = CA
  
      def updateValue(self):
          #a = dill.load(ClassA.storage)
          a = Object()
          a.DATA = "new value"
          self.CA = a
          print self.CA.DATA
  
  CA = ClassA()
  CB = ClassB(CA)
  CB.updateValue()
  print CA.DATA
  </code></pre>
  
  <p>So that the output is:</p>
  
  <pre><code>new value
  new value
  </code></pre>