Created
September 14, 2017 12:00
-
-
Save hectorperez/f51c4c7b2b7a8da54d7794184b03b140 to your computer and use it in GitHub Desktop.
get source code of function in python
This file contains 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
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