[Python-Dev] Questions about signal handling.

Antoine Pitrou solipsis at pitrou.net
Tue Sep 25 11:19:11 EDT 2018


On Tue, 25 Sep 2018 09:09:26 -0600
Eric Snow <ericsnowcurrently at gmail.com> wrote:
> On Tue, Sep 25, 2018 at 1:45 AM Victor Stinner <vstinner at redhat.com> wrote:
> > Please don't rely on this ugly API. *By design*, Py_AddPendingCall()
> > tries 100 times to acquire the lock: if it fails to acquire the lock,
> > it does notthing... your callback is ignored...  
> 
> Yeah, there are issues with pending calls as implemented.
> Furthermore, I'm not clear on why it was made a public API in the
> first place.

I don't know, but I think Eve Online used the API at some point (not
sure they're still Python-based nowadays).  Perhaps Kristján may
confirm if he's reading this.

Regards

Antoine.




More information about the Python-Dev mailing list