Python, documentation strings within classes
<p>How do I print documentation strings within classes</p>

<p>For functions i can do this:</p>

<pre><code>def func():  
    """
     doc string
    """


print func.__doc__
</code></pre>

<p>Is it possible to do the same thing with a class</p>

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

    def __init__(self):
        """
        doc string
        """

i = MyClass()  
print i.__doc__
</code></pre>

<p>This doesn't work. It only prints out <code>None</code>.<br>
Am writing a text game and I want to use the doc string as an instruction to the player without using the <code>print</code> command</p>

<p>Thanks</p>
