* for generic unpacking and not just for arguments?
Mel
mwilson at the-wire.com
Sun Nov 29 10:40:29 EST 2009
Russell Warren wrote:
> Maybe it's just that * is strictly for arguments, and trying it for
> generic tuple unpacking is abuse (which is down the corridor in 12A).
I'd agree with that. It's a feature of function calls, not a feature of
sequence types, so that you can handle a set of function arguments as a
bunch, and apply them when you want.
The other function call feature that sequence types don't do is
a, b, c = **{'b':3, 'c':a, 'a':c}
Mel.
More information about the Python-list
mailing list