Doc for extended call syntax; was: Re: unzip array of arrays?
fakeaddress at nowhere.org
Sat Jan 24 16:02:50 CET 2009
> Where can I read about
> this mysterious use of the '*'?
Hmmm... that's a harder question than I thought. Am I missing it, or
does Python's doc need a write-up of the extended call syntax?
> It only works in the
> context of the zip() function. It's hard to understand
> how the interpreter handles that.
It works generally, for any callable. See the doc for 'apply':
It not only works in a call, but also in function definitions. You can
call a function with the extended call syntax whether or not is defined
with * and ** arguments.
More information about the Python-list