]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38858: new_interpreter() reuses pycore_init_builtins() (GH-17351)
authorVictor Stinner <vstinner@python.org>
Fri, 22 Nov 2019 18:24:49 +0000 (19:24 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2019 18:24:49 +0000 (19:24 +0100)
commit2582d46fbcf7bdf86b9cf4016850b8d155267ac6
tree7ac19636e1def16e85485e159ec98a127abb12e2
parent82c83bd907409c287a5bd0d0f4598f2c0538f34d
bpo-38858: new_interpreter() reuses pycore_init_builtins() (GH-17351)

new_interpreter() now calls _PyBuiltin_Init() to create the builtins
module and calls _PyImport_FixupBuiltin(), rather than using
_PyImport_FindBuiltin(tstate, "builtins").

pycore_init_builtins() is now responsible to initialize
intepr->builtins_copy: inline _PyImport_Init() and remove this
function.
Doc/data/refcounts.dat
Include/internal/pycore_pylifecycle.h
Python/import.c
Python/pylifecycle.c