[Stackless] Continuations ?
mprovost at termcap.net
Sun May 11 13:19:29 CEST 2008
On Sun, May 11, 2008 at 09:31:33AM +0200, Filip ??t??dronsk?? wrote:
> I recently heard something about Stackless Python supporting continuations,
> so I installed it only to find out the support was dropped a long time ago.
> So I am asking: is it possible (for someone who has never seen Stackless
> sources) to "forward-port" such feature to the current version ? Or does
> Stackless provide any mechanism that would make possible to implement
> reusable continuations ? Because without full-blown continuations it is
> not possibe to write a good web framework in Python where the Back button
> works correctly (it would cause an older continuation to be re-invoked),
> wheter it does send the old request again or load the page from cache.
> Something that works excellently in Seaside, but Smalltalk is to unpythonic
> for me to use. Is there any theroretical possibility to implement working
> multi-shot continuations in (Stackless) Python (just general ideas) ? I am
> not looking forward to being stuck with Ruby at all. Thanks for any help.
You can pickle tasklets which is the same thing. I built a framework
using this method and it works fine. You don't even need to keep them in
memory - I was using simple cgis and writing the tasklets out to disk
and reading them back in so it wasn't even the same interpreter between
More information about the Stackless