Skip to content

Instantly share code, notes, and snippets.

@ant358
Last active March 18, 2023 18:30
Show Gist options
  • Save ant358/2a87be4baecec8f737575ef036b9e3c7 to your computer and use it in GitHub Desktop.
Save ant358/2a87be4baecec8f737575ef036b9e3c7 to your computer and use it in GitHub Desktop.
To print out the source of functions in memory
# https://docs.python.org/3/library/inspect.html
import inspect
print(inspect.getsource(mystery_function))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment