Skip to content

Instantly share code, notes, and snippets.

@shtaxxx
Created March 3, 2015 02:56
Show Gist options
  • Save shtaxxx/497e28b824ab6de28c90 to your computer and use it in GitHub Desktop.
Save shtaxxx/497e28b824ab6de28c90 to your computer and use it in GitHub Desktop.
getargspec.py: reading argument list of a method in Python
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