|
Boost Users : |
Subject: Re: [Boost-users] [python] intercepting uncaught exceptions
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-01 13:34:12
On Tue, Mar 1, 2011 at 1:30 PM, Gennadiy Rozental <rogeeff_at_[hidden]> wrote:
> Dave Abrahams <dave <at> boostpro.com> writes:
>> This sounds like a general python/C question; the fact that
>> Boost.Python is throwing an exception is a minor detail in the picture
>> that doesn't affect the answer. You might try asking on the regular
>> Python user's list.
>
> Actually I wondered if Boost.Python doing something to prevent sys.excepthook
> from getting invoked.
I don't even know what that is.
> How does it produce error_already_set?
By looking at the return code of Python functions it calls and
throwing when it sees that there's an error. I.e., manually.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net