inspect.getargspec()

inspect.getargspec(func)

Get the names and default values of a Python function’s arguments. A named tuple ArgSpec(args, varargs, keywords, defaults) is returned. args is a list of the argument names. varargs and keywords are the names of the * and ** arguments or None. defaults is a tuple of default argument values or None if there are no default arguments; if this tuple has n elements, they correspond to the last n elements listed in args.

Deprecated since version 3.0: Use signature() and Signature Object, which provide a better introspecting API for callables.

doc_python
2016-10-07 17:34:58
Comments
Leave a Comment

Please login to continue.