meaning of: line, =

Tim Chase python.list at tim.thechases.com
Thu Feb 5 11:21:12 EST 2015


On 2015-02-05 09:08, Ian Kelly wrote:
> > Got an example where you can use a,b but not [a,b] or (a,b)?  
> 
> >>> def f(a, (b, c)):  
> ...     print a, b, c
> ...

Interesting.  I knew that at one point you could do this with lambdas
but never thought to do it with regular functions.  There are times
this would have been useful, but since it appears to have gone away
in Py3, I guess I won't adopt it.

-tkc





More information about the Python-list mailing list