[Python-Dev] Let's just keep lambda (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 10 04:49:13 CET 2006
- Previous message: [Python-Dev] Let's just *keep* lambda
- Next message: [Python-Dev] Let's just *keep* lambda
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Valentino Volonghi aka Dialtone wrote:
when someoperationthatresultsinadeferred() -> result: if result == 'Initial Value': when workonresultandreturnadeferred(result) -> innerres: print innerres else: print "No work on result" reactor.stop()
Hmmm. This looks remarkably similar to something I got half way through dreaming up a while back, that I was going to call "Simple Continuations" (by analogy with "Simple Generators"). Maybe I should finish working out the details and write it up.
On the other hand, it may turn out that it's subsumed by the new enhanced generators plus a trampoline.
-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Let's just *keep* lambda
- Next message: [Python-Dev] Let's just *keep* lambda
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]