How to refer to a child class from a parent method?
<p>In the following sample, is there a magic word I can put in place of <code>&lt;ChildClass&gt;</code> that works like the opposite of super?</p>

<pre><code>class Parent(object):

    def __init__(self):
        print &lt;ChildClass&gt;.x

class someChild(Parent):
    x = 10
</code></pre>

<p>It is a stupid example, but it shows my intention. By the way, using <code>someChild</code> will not work, because there are many child classes.</p>

<p>The only solution I can think of is to have a constructor in every child class that calls the constructor of Parent with a reference to itself (or even to pass x), but I would like to avoid having a constructor at all in each child.</p>
