Diez B. Roggisch wrote:
> """
> Although Python signal handlers are called asynchronously as far as the
> Python user is concerned, they can only occur between the ``atomic''
> instructions of the Python interpreter. This means that signals arriving
> during long calculations implemented purely in C (such as regular
> expression matches on large bodies of text) may be delayed for an arbitrary
> amount of time. 
> """
> 
> So - no workaround here, unless you patch python.

You could set up your own signal handler when entering the C extension. 
This should abort the extension (tricky) and call the Python signal handler.

Daniel
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to