On Mon, Jan 26, 2009 at 1:03 AM, brasse <thebra...@gmail.com> 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. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list