Skip to main content

Interrupt and signal handling for Cython

Project description

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.

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cysignals-1.7.0.tar.gz (85.6 kB view details)

Uploaded Source

File details

Details for the file cysignals-1.7.0.tar.gz.

File metadata

  • Download URL: cysignals-1.7.0.tar.gz
  • Upload date:
  • Size: 85.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cysignals-1.7.0.tar.gz
Algorithm Hash digest
SHA256 69c84c7b2a93c5e29e069c2c521f05b148010aeaf470037b73e0aabdeabe4070
MD5 dd304633cdd13ddf1868580f2dda0765
BLAKE2b-256 a5c0f07fbf4b4c5e6e77c8f1153a43a032f6cefb5c49d4180228fec051ee480b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page