[Python-Dev] PEP 556: Threaded garbage collection

Nick Coghlan ncoghlan at gmail.com
Sat Sep 9 11:12:14 EDT 2017


On 8 September 2017 at 12:40, Nathaniel Smith <njs at pobox.com> wrote:
> Would it make sense to also move signal handlers to run in this
> thread? Those are the other major source of nasty re-entrancy
> problems.

Python level signal handlers are already only run in the main thread,
so applications that want to ensure signals don't run at arbitrary
points in their code are already free to push all their application
logic into a subthread and have the main thread be purely a signal
handling thread.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list