Hello!
How can I make boost.python code python exceptions aware?
For example,
int test_for(){
for(;;){
}
return 0;
}
doesn't interrupt on Ctrl-C, if I export it to python. I think other exceptions won't work this way to.
This is a toy example. My real problem is that I have a C function that may take hours to compute. And I want to interrupt it, if it takes more that hour for example. But I don't want to kill python instance, within the function was called.
Thanks in advance.