Hi,

does anyone have a simple script/example how to handle the _sig_on and
_sig_off that is in Sage (e.g. so that I can use ctrl-C to interrupt a
code written in C)?

I tried to port it to my own project, but I am getting some missing symbols:

http://github.com/certik/hermes2d/commits/sig/

everything compiles nicely into an .so file, but when importing in
python, I get:

ImportError: /home/ondra/repos/hermes2d/python/hermes2d.so: undefined
symbol: _signals

So I think I need to link it with something. If someone knows, let me
know. If not, no problem, I think I'll figure it out eventually.

Ondrej

P.S. I also tried the approach that is in numpy, see the patch before it:

http://github.com/certik/hermes2d/commit/2ca243da2bda18fefe8a6a1c24e922e6361779a6

but that gives me segfaults when run from Python. Also haven't yet
figured out why.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to