[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'
Eryk Sun
report at bugs.python.org
Wed Sep 2 08:36:33 EDT 2020
Eryk Sun <eryksun at gmail.com> added the comment:
> Maybe in the time module?
The SIGINT event is also needed by PyOS_Readline, _io (builtin), _winapi (builtin), and _multiprocessing (pyd). Is the time module guaranteed to be imported in 3.x? It appears to get imported incidentally via _PyImportZip_Init (zipimport).
Could sigint_event be relocated to a platform-dependent union in _PyRuntimeState that gets initialized and finalized independent of any module? For example, accessed as _PyRuntime.platform.windows.sigint_event.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41686>
_______________________________________
More information about the Python-bugs-list
mailing list