Enhancement proposal: Native C signal handling
Status: Discussion on mailing list.
It would be nice to do something like Sage's _sig_on/_sig_off, though we can improve on that too (e.g. not require the user to remember to pair things up properly.
Syntax
cimport cython try: ... except cython.signals.SIG_XXX: ...
and
@cython.signals.???
def foo(...):
...and
with cython.signals.ensure_signals(condition=True): ...
with cython.signals.setup_signals(condition=True): ...
with cython.signals.?
try:
with cython.signals.?:
...
except cython.signals.SIG_YYY:
...
except RuntimeError:
...