How can a python object's classmethods be referred to inside the class attributes?
<p>I would like to do something along the lines of...</p>

<pre><code>class MyClassA(object):
    an_attr = AnotherClassB(do_something=MyClassA.hello)

    @classmethod
    def hello(cls):
        return "Hello"
</code></pre>

<p>however it will tell me MyClassA is not defined when I try to run it.</p>

<ul>
<li><code>an_attr</code> must be a class attribute</li>
<li>I can't alter <code>AnotherClassB</code></li>
<li>I would prefer if <code>hello()</code> remained a classmethod</li>
</ul>

<p>Any ideas?</p>
