]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26878)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Jun 2021 15:47:33 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 15:47:33 +0000 (17:47 +0200)
commit5ed7827b1620f5b3729bc9767158d24a33863fa9
treeb319c77a89064b6f2fab1345a6c3fb1c3f3bf072
parentfcde2c6a8c99a56576b25733d5cc60bce6d51f46
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26878)

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.

(cherry picked from commit 489699ca05bed5cfd10e847d8580840812b476cd)
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