Content deleted Content added
Line 48:
{{section-stub}}
Python supports very flexible variadic functions. By marking variables with one asterisk (e.g. *var) the given variable is defined to be a tuple of all the extra arguments. By marking variables with two asterisks (e.g. **var) the given variable is a dictionary of all extra [[http://en.wikipedia.org/wiki/Parameter_(computer_science)
def f(*args, **kwargs):
|