Variadic function: Difference between revisions

Content deleted Content added
O keyes (talk | contribs)
No edit summary
No edit summary
Line 43:
// Can be used to print:
// printSpaced(1, 2, "three");
 
 
== Variadic functions in [[Python]] ==
 
Python supports very flexible variadic functions. The param
 
def f(*args, **kwargs):
#args is a [[tuple]] of all the unspecified trailing arguments
#kwargs is a [[dict]] of all the arguments specified using name=val syntax
 
e.g.
 
==See also==