bpo-42260: Initialize time and warnings earlier at startup (GH-23249)
* Call _PyTime_Init() and _PyWarnings_InitState() earlier during the Python initialization. * Inline _PyImportHooks_Init() into _PySys_InitCore(). * The _warnings initialization function no longer call _PyWarnings_InitState() to prevent resetting filters_version to 0. * _PyWarnings_InitState() now returns an int and no longer clear the state in case of error (it's done anyway at Python exit). * Rework init_importlib(), fix refleaks on errors.
V
Victor Stinner committed
ef75a625cdf8377d687a04948b4db9bc1917bf19
Parent: d19fa7a
Committed by GitHub <noreply@github.com>
on 11/12/2020, 2:14:13 PM