parameter list notation

TheFlyingDutchman zzbbaadd at aol.com
Tue Sep 4 07:10:41 CEST 2007


Well I did a search on "Python variable length arguments" and found a
hit that seems to explain the *fields parameter:

When you declare an argment to start with '*', it takes the argument
list into an array.

def foo(*args):
  print "Number of arguments:", len(args)
  print "Arguments are: ", args





More information about the Python-list mailing list