The source code of module or function can be get from inspect .
import inspect
print(inspect.getsource(moduleName.function))
What about if the module is a built_in module?
import sys
print(inspect.getsource(sys))
TypeError: <module 'sys' (built-in)> is a built-in module .
Where can i get it then ?
ack-grep,find, and the like beat any web interface).