function arguments

david_ullrich at my-deja.com david_ullrich at my-deja.com
Thu Jul 6 11:43:57 EDT 2000


In article
<Pine.LNX.4.21.0007061257160.17492-100000 at krispc6.physik.uni-karlsruhe.d
e>,
  Johannes Zellner <johannes at zellner.org> wrote:

    You know about the "*args" thing? Not exactly what you
asked for, but:

def showargs(*args):
	return args

print showargs('fred', 'lola')

> Hello,
>
> is there a way to get a functions argument list ?
>
> e.g.
>
> def fun(fred, lola):
>     ...
>
> something like `arglist(fun)' should return [ 'fred', 'lola' ]
>
> --
>    Johannes
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list