◐ Shell
clean mode source ↗

Message 376231 - Python tracker

> 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.