<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 "<pyshell#10>", line 2, in <module><br> if sys.x is callable:<br>AttributeError: 'module' object has no attribute 'x'</p>
<p> </p>
<p>Some one please tell me How can I do that?</p>
<p>Prasad</p></div>