unpaking sequences of unknown length
Diez B. Roggisch
deets at nospam.web.de
Sun Aug 27 08:19:45 EDT 2006
>> Question: Is there an unpacking mechanism for cases in which I don't
>> know--and don't need to know--how many elements I get, or an
>> argument passing mechanism that is the inverse of the tuplifier (*args)?
>
> No.
>
> It looks a little bit as if you aren't aware of the symetry behind the *
> and **-argument-passing schemes. I suggest reading up on them.
Sorry - I was somewhat unconcentrated and missed the last part of the
sentence. So it is
No "generalized", yes, the inverse of *args is foo(*args)
Sorry for the confusion.
Diez
More information about the Python-list
mailing list