inspect.getargs()

inspect.getargs(co)[source]

Get information about the arguments accepted by a code object.

Three things are returned: (args, varargs, varkw), where ‘args’ is a list of argument names (possibly containing nested lists), and ‘varargs’ and ‘varkw’ are the names of the * and ** arguments or None.