>>> import inspect >>> help(inspect.getargspec) Help on function getargspec in module inspect: getargspec(func) Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tuple of the default values of the last n arguments.What conditions would you guess might cause getargspec's args list to contain nested lists?
Monday, April 11, 2005
how well do you know python, part 3
Here's one to file in the "cryptic documentation" category.