[C++-sig] preventing boost::python::throw_error_already_set

Stefan Seefeld seefeld at sympatico.ca
Mon Dec 15 17:27:28 CET 2008

troy d. straszheim wrote:
> In short (i'm guessing this is more or less what you'll need):
>   gdb --args /usr/bin/python /path/to/my/python/script.py
>   run
>     # it runs, throws an exception, but the stacktrace isn't helpful
>   catch throw # this only works after the first run
>   run
>   # jackpot, you're at the point of the throw

The throw point isn't very interesting in this case: In Python, 
iteration is terminated by means of a 'StopIteration' exception. The 
question is why this exception manages to escape uncaught.



      ...ich hab' noch einen Koffer in Berlin...

More information about the Cplusplus-sig mailing list