How can I make boost.python code python error notifications?
For instance,
int test_for(){ for(;;){ } return 0; }
doesn't interrupt Ctrl-C if I export it to python. I think other exceptions will not work this way.
This is a toy example. My real problem is that I have a C function that can take several hours. And I want to interrupt it if it takes more than an hour, for example. But I do not want to kill the python instance, as part of the function was called.
Thanks in advance.
source share