232598/how-can-i-get-the-source-code-of-a-python-function
Suppose I have a Python function as defined below:
def foo(arg1,arg2): #do something with args a = arg1 + arg2 return a
I can get the name of the function using foo.func_name. How can I programmatically get its source code, as I typed above?
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.