A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-September/155300.html below:

[Python-Dev] Questions about signal handling.

[Python-Dev] Questions about signal handling. [Python-Dev] Questions about signal handling.Eric Snow ericsnowcurrently at gmail.com
Mon Sep 24 12:51:33 EDT 2018
On Fri, Sep 21, 2018 at 5:11 PM Victor Stinner <vstinner at redhat.com> wrote:
> Le sam. 22 sept. 2018 à 01:05, Eric Snow <ericsnowcurrently at gmail.com> a écrit :
> > 3. Why does signal handling operate via the "pending calls" machinery
> > and not distinctly?
>
> Signals can be received anytime, between two instructions at the
> machine code level. But the Python code base is rarely reentrant.
> Moreover, you can get the signal while you don't hold the GIL :-)

Sorry, I wasn't clear.  I'm not suggesting that signals should be
handled outside the interpreter.  Instead, why do we call
PyErr_CheckSignals() in Py_MakePendingCalls() rather than distinctly,
right before we call Py_MakePendingCalls()?

-eric
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4