kiwifb / cysignals

SageMath'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

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

License:GNU Lesser General Public License v3.0


Languages

Language:Python 71.7%Language:C 24.0%Language:Makefile 3.0%Language:M4 1.2%Language:Objective-C 0.1%