|
From: Chris B. <Chr...@no...> - 2005-05-24 16:29:05
|
phi...@ho... wrote:
> But he can only specify some and the program must adapt to complete by
> default settings the ones missing.
> It is a way for python to compensate the lack of overload for methods in
> oo.
This is called keyword arguments in Python, and it has a lot of use
besides "compensating for a lack of overloaded methods.
> I go through pylab.py code and although it is new to me, i have the
> intuition you are using it.
> Is Matplotlib using the concept of partial application?
Hardly any substantial Python code doesn't use keyword arguments.
By the way, you can do type checking as another way to get something
like method overloading.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|