What's the business with the asterisk?

2009-01-24 Thread mk
Hello everyone, From time to time I spot an asterisk (*) used in the Python code _outside_ the usual *args or **kwargs application. E.g. here: http://www.norvig.com/python-lisp.html def transpose (m): return zip(*m) transpose([[1,2,3], [4,5,6]]) [(1, 4), (2, 5), (3, 6)] What does *m mean

Re: What's the business with the asterisk?

2009-01-24 Thread Tim Chase
From time to time I spot an asterisk (*) used in the Python code _outside_ the usual *args or **kwargs application. E.g. here: http://www.norvig.com/python-lisp.html def transpose (m): return zip(*m) transpose([[1,2,3], [4,5,6]]) [(1, 4), (2, 5), (3, 6)] What does *m mean in this

Re: What's the business with the asterisk?

2009-01-24 Thread Kay Schluehr
On 24 Jan., 13:31, mk mrk...@gmail.com wrote: Hello everyone,  From time to time I spot an asterisk (*) used in the Python code _outside_ the usual *args or **kwargs application. E.g. here:http://www.norvig.com/python-lisp.html def transpose (m):    return zip(*m)   transpose([[1,2,3],