When is the parent class variables available to use in Python? : <pre><code>class frozen(object) :
    isFrozen = False
    print 'In base'

class layer(frozen):
    print isFrozen
</code></pre>

<p>I am trying to understand the inheritance concept in Python, the above lines are a silly example. "print" statement in the parent class is working as I try to create an object of layer class. But it's throwing an error at the "print" statement of the child class. Saying "isFrozen" is not defined.</p>

<p>But, if I comment out the "print" statement in child class, I can create an object of the child class and access "isFrozen" as "layerObject.isFrozen".</p>

<p>So, could anyone please point out my misunderstanding here? </p>
