wrf.args_to_list

wrf.args_to_list(func, args, kwargs)

Return all of the function arguments, including defaults, as a list.

The result can then be passed to the function via result.

Note

This function currently does not work with functions that contain variable length args or kwargs arguments.

Parameters:
  • func (function) – The function to examine (usually the function that is wrapped).
  • args (tuple) – The positional arguments.
  • kwargs (dict) – The keyword arguments.
Returns:

A list of all argument values, including defaults.

Return type:

list