]> granicus.if.org Git - python/commit
bpo-36710: Add runtime variable to Py_InitializeEx() (GH-12939)
authorVictor Stinner <vstinner@redhat.com>
Wed, 24 Apr 2019 16:23:53 +0000 (18:23 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2019 16:23:53 +0000 (18:23 +0200)
commit43125224d6da5febb34101ebfd36536d791d68cd
treebbfc1e3bd576c09b48b1b8787998a1eeb472697a
parent8e91c246e468515b877690e090c73f496552541d
bpo-36710: Add runtime variable to Py_InitializeEx() (GH-12939)

Py_InitializeEx() now uses a runtime variable passed to subfunctions,
rather than working directly on the global variable _PyRuntime.

Add 'runtime' parameter to _PyCoreConfig_Write(), _PySys_Create(),
_PySys_InitMain(), _PyGILState_Init(),
emit_stderr_warning_for_legacy_locale() and other subfunctions.
Include/internal/pycore_coreconfig.h
Include/internal/pycore_pylifecycle.h
Python/coreconfig.c
Python/pylifecycle.c
Python/pystate.c
Python/sysmodule.c