gituser/production/: cysignals-1.10.2 metadata and description

Homepage Simple index

Interrupt and signal handling for Cython

author Martin R. Albrecht, François Bissey, Volker Braun, Jeroen Demeyer
author_email sage-devel@googlegroups.com
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
  • Operating System :: POSIX
  • Programming Language :: C
  • Programming Language :: Cython
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Topic :: System
  • Topic :: Software Development :: Debuggers
license GNU Lesser General Public License, version 3 or later
requires_dist
  • Cython (>=0.28)
File Tox results History
cysignals-1.10.2-cp27-cp27mu-linux_x86_64.whl
Size
610 KB
Type
Python Wheel
Python
2.7
cysignals-1.10.2-cp37-cp37m-linux_x86_64.whl
Size
722 KB
Type
Python Wheel
Python
3.7
cysignals-1.10.2.tar.gz
Size
93 KB
Type
Source
https://travis-ci.org/sagemath/cysignals.svg?branch=master https://ci.appveyor.com/api/projects/status/vagqk56cj3ndycp4?svg=true https://readthedocs.org/projects/cysignals/badge/?version=latest

Cython and interrupts

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.

Requirements

  • Python 2.7 or Python >= 3.4

  • Cython >= 0.28

  • Sphinx >= 1.6 (for building the documentation)

  • PARI/GP (optional; for interfacing with the PARI/GP signal handler)