How do I provide an informal string representation of a python Class (not instance)
<p>I understand how I can provide an informal representation of an <em>instance</em> of the object, but I am interested in providing an informal string representation of the Class name.</p>

<p>So specifically, I want to override what is returned when I print the Class (__main__.SomeClass).</p>

<pre><code>&gt;&gt;&gt; class SomeClass:
...   def __str__(self):
...     return 'I am a SomeClass instance.'
... 
&gt;&gt;&gt; SomeClass
&lt;class __main__.SomeClass at 0x2ba2f0fd3b30&gt;
&gt;&gt;&gt; print SomeClass
__main__.SomeClass
&gt;&gt;&gt; 
&gt;&gt;&gt; x = SomeClass()
&gt;&gt;&gt; x
&lt;__main__.SomeClass instance at 0x2ba2f0ff3f38&gt;
&gt;&gt;&gt; print x
I am a SomeClass instance.
</code></pre>
