[Twisted-Python] Updated defer.html

Moshe Zadka m at moshez.org
Tue Mar 11 08:23:04 EST 2003

On Tue, 11 Mar 2003, Andrew Bennetts <andrew-twisted at puzzling.org> wrote:

>     def passThrough(fn):
>         def foo(result, *args, **kwargs):
>             fn(*args, **kwargs)
>             return result
>         return foo


def passThrough(fn):
    lambda result, *args, **kw: (fn(*args, **kwargs), result)[1]

Yeah, yeah.
I know.
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.

More information about the Twisted-Python mailing list