<div>hello</div>
<div>      I get a problem while trying to print non callable</div>
<div>items in dir(module).May be as the items are strings.</div>
<div> </div>
<div> </div>
<div>
<p>for x in dir(sys):<br>?? if sys.x is callable:<br>????  print sys.x()<br>?? else:print sys.x</p>
<p> </p>
<p>Traceback (most recent call last):<br>  File &quot;&lt;pyshell#10&gt;&quot;, line 2, in &lt;module&gt;<br>    if sys.x is callable:<br>AttributeError: &#39;module&#39; object has no attribute &#39;x&#39;</p>
<p> </p>
<p>Some one please tell me How  can I do that?</p>
<p>Prasad</p></div>