summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-12 14:14:13 (GMT)
committerGitHub <noreply@github.com>2020-11-12 14:14:13 (GMT)
commitef75a625cdf8377d687a04948b4db9bc1917bf19 (patch)
treef9a979741790c9647b53e3f7c8f2c5fd66b6e56a /Misc
parentd19fa7a337d829e3dab3e9f919f5dcf09cf6f6ba (diff)
downloadcpython-ef75a625cdf8377d687a04948b4db9bc1917bf19.zip
cpython-ef75a625cdf8377d687a04948b4db9bc1917bf19.tar.gz
cpython-ef75a625cdf8377d687a04948b4db9bc1917bf19.tar.bz2
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.
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions