Paul McGuire <ptmcg at austin.rr._bogus_.com> wrote: > Is there a clean Python idiom for unpacking a tuple so that any > unassigned target values get a default, or None If i is a tuple you want unpacked, then something like (lambda a, b, c, d = None: (a, b, c, d))(*i) is the expanded version with defaults substituted. -- [mdw]