|
From: Chris B. <Chr...@no...> - 2004-11-16 16:53:37
|
Darren Dale wrote:
> Matlab also returns one object- the varargout cell array which is
> similar to Python's list or tuple. You write a function, and pack
> varargout with nargout results: [a,b]=matlabfun().
I haven't used Matlab for a while, and not a newer version than 5.*, but
IIRC, while the above notation looks, like you are returning a cell
array, you could not call that fun with a single return argument.
Perhaps that's changed, in which case you shouldn't use nargout in
Matlab either!
Anyway, my main point was that kludging a nargout implementation in
python was not a good idea. I'd much rather see matplotlib be
pythonesque than matlabesque. Perhaps my goals are different than
others, but I use Python, rather than Matlab, largely because I like the
language better.
-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...
|