So I'm trying to understand how the use of * in the lambda example below fits within the *arg/**kwarg Python idioms.
If I create a simple function, summing, that uses sum(iterable) to sum a list of numbers, there's at least a couple ways to do it.
def summing(*x): return sum(*x)
or I've seen other code which uses this version for lambda
summing = lambda * x: sum(*x)
For the lambda version, I don't really understand how the * symbol fits into the idiom. I'm assuming that it's not meant to be a glob pattern -- so what is it? Is it used elsewhere in Python? (Or is something like "*args" whitespace insensitive?)
(This question started with a little snippet of code that stumped me.)