[Python-3000] Using *a for packing in lists and other places

Guido van Rossum guido at python.org
Sun Mar 16 18:55:46 CET 2008


On Sun, Mar 16, 2008 at 12:48 PM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 10:00 AM 3/16/2008 -0500, Guido van Rossum wrote:
>  >(a) *if* we're going to do this, it should also be done for function
>  >calls (though not for function defs). I'd like all of these to be
>  >legal (and their interpretation is obvious):
>  >
>  >   f(a, b, *x, k=val)
>  >   f(a, *x, b, k=val)
>  >   f(*x, a, b, k=val, **kw=stuff)
>
>  What does **kw=stuff do?

Sorry, typo. It's been a long conference. ;-) I meant **kw, not **kw=stuff.

PS too bad you're not here!

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list