New Function Call SyntaxFunctions with variable length arguments
# Python 1.5 version
def wrap_foo(*pargs,**kwargs):
print "Calling foo"
apply(foo,pargs,kwargs)
Python 2.0 provides a new syntax that replaces apply()
Also works in combination with other arguments
|
| <<< | O'Reilly OSCON 2001, New Features in Python 2, Slide 16 July 26, 2001, beazley@cs.uchicago.edu |
>>> |