embray / cysignals

Sage's interrupt.pyx reborn as a stand-alone package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cysignals: interrupt and signal handling for Cython

https://travis-ci.org/sagemath/cysignals.svg?branch=master https://readthedocs.org/projects/cysignals/badge/?version=latest

When writing Cython code, special care must be taken to ensure that the code can be interrupted with CTRL-C. Since Cython optimizes for speed, Cython normally does not check for interrupts. For example, code like the following cannot be interrupted in Cython:

while True:
    pass

The cysignals package provides mechanisms to handle interrupts (and other signals and errors) in Cython code.

See http://cysignals.readthedocs.org/ for the full documentation.

About

Sage's interrupt.pyx reborn as a stand-alone package

License:GNU Lesser General Public License v3.0


Languages

Language:Python 64.0%Language:C 19.8%Language:C++ 13.5%Language:M4 1.5%Language:Makefile 1.2%