In article <[EMAIL PROTECTED]>,
Paul Sijben  <[EMAIL PROTECTED]> wrote:
>
>in a worker thread setup that communicates via queues is it possible to
>catch exceptions raised by the worker executed, put them in an object
>and send them over the queue to another thread where the exception is
>raised in that scope?
>
>considering that an exception is an object I feel it ought to be
>possible, however I do not see how to go about it.

One caution: because exceptions keep stack frames alive, you can have
garbage collection problems.  Make sure to del the exception when you're
done with it.
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"I disrespectfully agree."  --SJM
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to