Last active
March 18, 2023 18:30
-
-
Save ant358/2a87be4baecec8f737575ef036b9e3c7 to your computer and use it in GitHub Desktop.
To print out the source of functions in memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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