>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
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor