<br><br>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;for attrib in dir(sys):<br> &gt; if callable(&#39;sys.%s&#39; % attrib):<br>      &gt;print &#39;Callable: sys.%s&#39; % attrib<br>
 &gt; else:<br>      &gt;print &#39;Not Callable: sys.%s&#39; % attrib<br><br>Any particular reason why you need to be able to do this, just wondering about the use case for such automation ?<br><br>-- <br>Kind Regards,<br>
<span class="sg">Christian Witts<br><br><br></span></blockquote></div>
<div> </div>
<div>Hello</div>
<div>It is printing wether the item is callable or not.</div>
<div>I want it to print</div>
<div>sys.getdefaultencoding</div>
<div>ASCII</div>
<div>sys.getfilesystemencoding</div>
<div>mbcs</div>
<div> </div>
<div>Like that</div>
<div> </div>
<div>Prasad</div>
<div><br> </div>