What's the business with the asterisk?
python.list at tim.thechases.com
Sat Jan 24 13:46:34 CET 2009
> 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 example and how does it do the magic here?
There's a good writeup on args/kwargs at
(looks like the content was gleaned from comp.lang.python and
More information about the Python-list