How to get the output of the built-in help() function in python in a string?
<p>As a example :</p>

<pre><code>&gt;&gt;&gt; out = help(list) ## out must be a string .
&gt;&gt;&gt; print out 
&gt;&gt;&gt; ' Help on class list in module __builtin__:

class list(object)
 |  list() -&gt; new empty list
 |  list(iterable) -&gt; new list initialized from iterable's items '
</code></pre>

<p>Any advice highly appreciated ...</p>
