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

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