Re: Optional Parameter Requirements

2006-10-30 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > If I'm building a function to accept optional parameters, do I need to > allow for the capture of both the positional arguments as well as the > keyword arguments? No. > If it doesn't make sense to allow keyword arguments, > can I just write: > > def myfunc(a, b, *tup)

Re: Optional Parameter Requirements

2006-10-27 Thread Gabriel Genellina
At Friday 27/10/2006 16:35, [EMAIL PROTECTED] wrote: If I'm building a function to accept optional parameters, do I need to allow for the capture of both the positional arguments as well as the keyword arguments? If it doesn't make sense to allow keyword arguments, can I just write: def myfunc(

Optional Parameter Requirements

2006-10-27 Thread [EMAIL PROTECTED]
If I'm building a function to accept optional parameters, do I need to allow for the capture of both the positional arguments as well as the keyword arguments? If it doesn't make sense to allow keyword arguments, can I just write: def myfunc(a, b, *tup): ... and be done with it? TIA -- http: