Function arguments

Chris Rebert clp2 at
Mon Jan 26 10:11:57 CET 2009

On Mon, Jan 26, 2009 at 1:03 AM, brasse <thebrasse at> wrote:
> Hello!
> Is there any way that I can get at all the arguments passed to a
> function as a map without using keyword arguments?
> def foo(a, b, c):
>    # Can I access all the arguments in a collection somewhere?

You can use positional arguments:

def foo(*args):
    print args

foo("a", "b", "c") #==> ["a", "b", "c"]

Though if you explained your situation more, the newsgroup could
probably be of greater help.


Follow the path of the Iguana...

More information about the Python-list mailing list