Created
March 3, 2015 02:56
-
-
Save shtaxxx/497e28b824ab6de28c90 to your computer and use it in GitHub Desktop.
getargspec.py: reading argument list of a method 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 | |
def func(a): | |
return a * a | |
r = inspect.getargspec(func) | |
print(r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment