156135250194107072078175030179198180024228156016206217188240240204174052240195243164235109
Variable-length Arguments
There may be situations where your function is required to process an unknown number of arguments. These are called variable-length argument lists. Variable-length arguments are not named explicitly in function declarations because the number of arguments is unknown before run-time (and even during execution, the number of arguments may be different on successive calls), an obvious difference from formal arguments (positional and default) which are named in function declarations. Python supports variable-length arguments in two ways because function calls provide for both keyword and non-keyword argument types.
| Last updated on 9/14/2001 Core Python Programming, © 2002 Prentice Hall PTR |
|