Are multiple return values really harmful? (Re: determining the number of output arguments)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 18 04:34:49 CET 2004


Carlos Ribeiro wrote:
> @returns('year','month','day')
> def today():
>     ...
>     return year, month, day

I was also thinking of suggesting an extension to
the return statement:

    return year = y, month = m, day = d

but I thought one radical idea per post would
be plenty. :-)

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Python-list mailing list