On Mon, Nov 24, 2008 at 4:14 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Hi, > > Andrew Straw wrote: >> According to the documentation for PyErr_CheckSignals() (at >> http://docs.python.org/c-api/exceptions.html#PyErr_CheckSignals ), the >> KeyboardInterrupt is already raised. > > In that case, if you need this inside a cdef function, you can declaring it > as "except *" and simply return from the function if a signal was set. The > caller will always check if an exception was raised and propagate the > KeyboardInterrupt.
Ah, I was unaware of this feature. It is working great, thanks, David _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
