]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Jun 2021 12:13:27 +0000 (14:13 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 12:13:27 +0000 (14:13 +0200)
commit489699ca05bed5cfd10e847d8580840812b476cd
treef58b7493648a430be755b5bc5a788923c8774e62
parent019ad62afd20e80c74f879aa716e339b992a0bb9
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874)

Py_RunMain() now resets PyImport_Inittab to its initial value at
exit. It must be possible to call PyImport_AppendInittab() or
PyImport_ExtendInittab() at each Python initialization.
Doc/c-api/import.rst
Doc/c-api/init_config.rst
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2021-06-23-12-12-04.bpo-44441.3p14JB.rst [new file with mode: 0644]
Programs/_testembed.c
Python/import.c