This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, corona10, eric.snow, gvanrossum, kj, vstinner
Date 2022-01-24.10:23:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643019791.14.0.0533596157028.issue46465@roundup.psfhosted.org>
In-reply-to
Content
> So it's also a threads scheduling issue, no?

No, it isn't. The interpreter checks the eval breaker frequently enough. It checks on all back edges and on all calls to Python functions.

The test probably needs to be fixed, or extended. It is signals sent from another process or thread that we should be testing for.

I'm happy to merge PR 30826, but if you are really concerned about prompt delivery of signals, then you should be worried about C extensions.

If you are worried about being able to interrupt programs, then you also
worry about poorly written Python code that uses `except:`.

Regarding C extensions, I think clear documentation that extension authors need to check for signals in any code that might run for a few hundred microseconds or longer is the best approach.

For `except:`, maybe we could issue a syntax warning, as `except:` is universally considered to be bad practice.
History
Date User Action Args
2022-01-24 10:23:11Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, vstinner, eric.snow, corona10, kj
2022-01-24 10:23:11Mark.Shannonsetmessageid: <1643019791.14.0.0533596157028.issue46465@roundup.psfhosted.org>
2022-01-24 10:23:11Mark.Shannonlinkissue46465 messages
2022-01-24 10:23:10Mark.Shannoncreate