[Stackless] Exception passing patch
Kristján Valur Jónsson
kristjan at ccpgames.com
Wed Dec 2 09:21:47 CET 2009
> -----Original Message-----
> From: stackless-bounces at stackless.com [mailto:stackless-
> bounces at stackless.com] On Behalf Of Richard Tew
> Sent: 2. desember 2009 05:52
> To: Peter Ingebretson
> Cc: stackless at stackless.com
> Subject: Re: [Stackless] Exception passing patch
> However, it goes against a previous change. Some time in the past
> Christian removed sending of exception instances, and replaced it with
> sending types and arguments. If the reasoning behind his change was
> because of problems it caused, then that would of course rule out any
> possibility of reversing it.
> Out of curiosity, can you give some examples of where you find it
> useful to do this?
Richard, wasn't the change a different one? In the old days, passing an exception instance to channel.send() would magically raise it on the receive() end. I think he added the send_exception() to explicitly send an exception. I too find it odd that one cannot send an exception instance over like this, although I've never came across a specific use case.
More information about the Stackless