Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching/Handling signals #3192

Open
jakirkham opened this issue Oct 17, 2019 · 1 comment

Comments

@jakirkham
Copy link
Contributor

@jakirkham jakirkham commented Oct 17, 2019

It would be really useful to have a way to catch/handle signals in Cython. In fact the try...except syntax explored in this wiki page would be great.

@scoder

This comment has been minimized.

Copy link
Contributor

@scoder scoder commented Oct 18, 2019

There's cysignals for that purpose.

I'm not sure if it's really better to make signals a language feature, nor if try-except-finally is a good way to handle signals. They can often be (pre-)processed out of order and may or may not have an impact on the control flow. try-except-finally always changes the control flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.