how query function args

Joshua Marshall jmarshal at mathworks.com
Thu Mar 29 20:42:41 CEST 2001


david winkler <winkler at abaqus-sn.com> wrote:
> I need to query the names and values of a function's keyword arguments.
> I
> suspect that there is an easy way to do this but cannot find it.  Would
> someone care to make a suggestion?

func.func_defaults will return a tuple of the default values, but not
the names of the formals.



More information about the Python-list mailing list