abusing exceptions for continuations
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Dec 10 14:05:09 EST 2007
gangesmaster a écrit :
> i've had this strange idea of using the exception's traceback (which
> holds the stack frame) to enable functional continuations, meaning,
> raise some special exception which will be caught by a reactor/
> scheduler/framework, which could later revive it by restoring the
> frame.
>
> i'm thinking of using the generator's implementation (some minimal
> support on the c-side)
>
> has this been tried before? what were the results?
I don't know, but you may want to have a look at Stackless Python.
More information about the Python-list
mailing list