Valentino Volonghi aka Dialtone wrote: > when some_operation_that_results_in_a_deferred() -> result: > if result == 'Initial Value': > when work_on_result_and_return_a_deferred(result) -> inner_res: > print inner_res > 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 +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4