Passing a variable number of arguments to a wrapped function.

Robert Kern rkern at ucsd.edu
Fri Aug 5 17:50:11 CEST 2005


stephen at theboulets.net 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 the underlying function. matplotlib.pylab 
functions, however, have too much intelligence coded in them for this to 
be easy.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list