Skip to content

Instantly share code, notes, and snippets.

@hectorperez
Created September 14, 2017 12:00
Show Gist options
  • Save hectorperez/f51c4c7b2b7a8da54d7794184b03b140 to your computer and use it in GitHub Desktop.
Save hectorperez/f51c4c7b2b7a8da54d7794184b03b140 to your computer and use it in GitHub Desktop.
get source code of function in python
import inspect
print(inspect.getsource(function_name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment