[C++-sig] boost::python + python3.1.2 throw

Neal Becker ndbecker2 at gmail.com
Wed Oct 20 03:32:15 CEST 2010


Neal Becker wrote:

> Has behavior of c++ exception changed with boost::python + python3?
> 
> I used to simply use throw from c++.  Now I get:
> SystemError: initialization of ldpc_45 raised unreported exception
> 
> I believe this exception was really:
>   if (!fp)
>     throw std::runtime_error ((boost::format ("fopen %1% failed") %
> name).str());
> 
> which would have produced a good error message under python2.6.

I think this difference in behavior is for an exception thrown
during module initialization?

A c++ exception thrown after initialization seems to behave as before.



More information about the Cplusplus-sig mailing list