Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread stephen
Using 'plot(*args, **kwargs)' does seem to work just fine. Thanks to all for their suggestions. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread Bengt Richter
On 5 Aug 2005 08:34:32 -0700, [EMAIL PROTECTED] wrote: >Is there a better way of doing this so that I don't have to go through >every permutation of possible arguments (the example here from the >matplotlib 'plot' function): > >def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''): >

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread John Hunter
> "stephen" == stephen <[EMAIL PROTECTED]> writes: stephen> Is there a better way of doing this so that I don't have stephen> to go through every permutation of possible arguments stephen> (the example here from the matplotlib 'plot' function): You can make linecolor=None and lin

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread en.karpachov
On 5 Aug 2005 08:34:32 -0700 [EMAIL PROTECTED] wrote: > Is there a better way of doing this so that I don't have to go through > every permutation of possible arguments (the example here from the > matplotlib 'plot' function): > > def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''):

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Is there a better way of doing this so that I don't have to go through > every permutation of possible arguments (the example here from the > matplotlib 'plot' function): Usually, you would just make the defaults for linecolor and linewidth the same as the defaults for

Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread stephen
Is there a better way of doing this so that I don't have to go through every permutation of possible arguments (the example here from the matplotlib 'plot' function): def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''): if linecolor and linewidth: plot(xvalues, yvalues, li