def a((b,c,d),e):
AdSR
artur_spruce at yahoo.com
Mon Apr 18 18:23:17 EDT 2005
> Yes, but usually not so much in function arguments but more in
> list-comprehensions or other places where unpacking was useful. I
love the
> feature - I just don't have nested enough data to use it more :)
I use tuple unpacking in its typical uses, it's one of the first
language features I learned about. Somehow it never occurred to me that
you could use it in function arguments this way - I only knew f(*args,
**kwargs) style in this context. That's what I made the whole fuss
about...
AdSR
More information about the Python-list
mailing list