Print Python Function Definition With Getsource (opens in new tab)
If I’ve defined a function in the Python REPL, I can read its definition with inspect.getsource.
Read the original articleIf I’ve defined a function in the Python REPL, I can read its definition with inspect.getsource.
Read the original article