STINNER Victor <vstin...@python.org> added the comment:

The GIL is now created by _PyEval_InitGIL() which is called by Py_Initialize(): 
at Python startup.

_PyRuntime.main_thread is set by _PyRuntime_Initialize() which is also called 
by Py_Initialize(): at Python startup.

The code to handle signals and pending calls changed a lot since 2016. I close 
the issue.

----------
stage:  -> resolved
status: pending -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26003>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to