[Stackless] Exception passing patch

Richard Tew richard.m.tew at gmail.com
Thu Dec 3 00:31:19 CET 2009

2009/12/3 Peter Ingebretson <pingebre at yahoo.com>:
>> The ability to pass exception instances caught in one
>> context, to be raised eventually in another.. it does
>> not seem like a good programming practice.
> In general I agree with this, but in some specific cases I have found it useful to be able to treat method invocations and "worker" tasklets in a homogeneous manner.
> This makes it possible to transparently turn a method call into a worker tasklet.  In order for this to be fully transparent, worker tasklets need to be able to propagate exceptions up to their owner in the same manner as invoked methods can propagate exceptions up to their caller.

There must be some boilerplate involved though?  Given that you more
than likely set up a channel and launch the tasklet, does a little
more to take a passed exception and raise it, make that much more of a


More information about the Stackless mailing list