This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients GlitchMr, Ramchandra Apte, benjamin.peterson, ezio.melotti, mark.dickinson, rhettinger, serhiy.storchaka
Date 2012-10-02.09:06:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349168782.95.0.573335560354.issue16094@psf.upfronthosting.co.za>
In-reply-to
Content
f = lambda t, c, *, _f=(lambda a, b, c: a + b + c): _f(*(unpack_tuple(2, t) + (c,)))

def unpack_tuple(n, t):
    t = tuple(t)
    if len(t) > n:
        raise ValueError('too many values to unpack (expected %d)' % (n,))
    if len(t) < n:
        raise ValueError('need more than %d values to unpack' % (len(t),))
    return t
History
Date User Action Args
2012-10-02 09:06:23serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, benjamin.peterson, ezio.melotti, Ramchandra Apte, GlitchMr
2012-10-02 09:06:22serhiy.storchakasetmessageid: <1349168782.95.0.573335560354.issue16094@psf.upfronthosting.co.za>
2012-10-02 09:06:22serhiy.storchakalinkissue16094 messages
2012-10-02 09:06:22serhiy.storchakacreate