|
From: John H. <jdh...@ac...> - 2004-11-15 21:17:22
|
>>>>> "Chris" == Chris Barker <Chr...@no...> writes:
Chris> no, I was a bit wrong. Python functions always return one
Chris> object, and when it appears that you are returning multiple
Chris> objects, you are really returning a single tuple with
Chris> multiple objects in it. Have I got it right this time?
Sounds right to me. Your answer does point to the danger of using
nargout in python
ret = somefunc()
i,j = ret
If somefunc is relying on nargout, it will botch it.
I think the only sane use for nargout in python is in auto-conversion
scripts, and then with appropriate warnings.
Thanks said, I would still like to have it, for that reason.
JDH
|