[Tutor] ?????
prasad rao
prasadaraon50 at gmail.com
Mon May 25 14:53:03 CEST 2009
>for attrib in dir(sys):
> > if callable('sys.%s' % attrib):
> >print 'Callable: sys.%s' % attrib
> > else:
> >print 'Not Callable: sys.%s' % attrib
>
> Any particular reason why you need to be able to do this, just wondering
> about the use case for such automation ?
>
> --
> Kind Regards,
> Christian Witts
>
>
>
Hello
It is printing wether the item is callable or not.
I want it to print
sys.getdefaultencoding
ASCII
sys.getfilesystemencoding
mbcs
Like that
Prasad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090525/4186f9b0/attachment.htm>
More information about the Tutor
mailing list