Some of the methods of inspect module are well-suited for this purpose:
import module
import inspect
src = inspect.getsource(module)
Some of the methods of inspect module are well-suited for this purpose:
import module
import inspect
src = inspect.getsource(module)