exception during module initialization + python3

Neal Becker ndbecker2 at gmail.com
Wed Oct 20 17:15:54 EDT 2010


Neal Becker wrote:

> Has behavior of exception thrown during module initialization changed with
> python3?
> 
> using boost::python, throwing a c++ exception in module initialization, I
> get:
> 
> SystemError: initialization of ldpc_45 raised unreported exception
> 
> I exepected to see the string associated with exception, which gave useful
> information (file not found, in this case).
> 
> I believe under python2.6 this would have happened (but I could be
> mistaken)
I just tried it, and I'm not mistaken.  On python2.6 I get my nice error 
message, but on python3.1.2 I just get the above  
SystemError: initialization of ldpc_45 raised unreported exception





More information about the Python-list mailing list