title: Reference Parent attributes from child - python3
body: <p>I have what I thought would be a pretty straightforward task, but it has turned into me questioning everything I know about Classes (which to be fair wasn't much to begin with).</p>
  
  <p>I have a parent class and I want to use the attributes of that instance in calculations to be performed in the child class, which is to be created from the <strong>init</strong> of the parent class. However, I don't seem to be able to reference them from the child class.</p>
  
  <p>I have found some suggestions to <strong>init</strong> the parent class from the child class, however, that just creates an endless loop in my case. </p>
  
  <pre><code>class User(object):
     def __init__(self, a, b):
      self.a = a
      self.b = b
      self.child.append(Child(c=4))
  
  class Child(User)
     def __init__(self, c):
      self.c = c + User.b
      print self.c
  </code></pre>