<br><br>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">>for attrib in dir(sys):<br> > if callable('sys.%s' % attrib):<br> >print 'Callable: sys.%s' % attrib<br>
> else:<br> >print 'Not Callable: sys.%s' % 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>