Suppose I have a Python function as defined below:
def foo(arg1,arg2): #do something with args a = arg1 + arg2 return a
I can g
to summarize :
import inspect print( "".join(inspect.getsourcelines(foo)[0]))