This only works in Python 2.6 and beyond. Is there a way to do this
before 2.6?

import pydoc
moduleName = 'math'
moduleFunc = 'acos'
mod = __import__(moduleName)
func = mod.__dict__[moduleFunc]
helpStr = pydoc.render_doc(func)
helpStr = pydoc.plain(helpStr)
print helpStr

Ryan
www.rtrowbridge.com/blog
Character TD
Naughtydog

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to