[C++-sig] Ping: Howto expose exception classes using boost.python?

Ryan Gallagher ryan.gallagher at gmail.com
Thu May 18 02:40:49 CEST 2006

Alex Mohr <amohr <at> pixar.com> writes:
> I store the class object in my C++ code, and then when I want to make an 
> exception, I just invoke the class object's operator(), set the python 
> exception state to that class/instance, and throw_error_already_set().

I should actually read what I cut...

This is a slightly different solution from what I did.  Do you want to 
post a brief example?  Interesting,


More information about the Cplusplus-sig mailing list