]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-76785: Add PyInterpreterConfig Helpers (gh-117170)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 2 Apr 2024 20:35:52 +0000 (14:35 -0600)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2024 20:35:52 +0000 (20:35 +0000)
commitf341d6017dd4e80509b69b5a9e2625b71b70f205
treefee03c2fb5ec944ca20b41e5a390c73f1d03a241
parentcae4cdd07ddfcd8bcc05d683bac53815391c9907
gh-76785: Add PyInterpreterConfig Helpers (gh-117170)

These helpers make it easier to customize and inspect the config used to initialize interpreters.  This is especially valuable in our tests.  I found inspiration from the PyConfig API for the PyInterpreterConfig dict conversion stuff.  As part of this PR I've also added a bunch of tests.
13 files changed:
Include/internal/pycore_pylifecycle.h
Lib/test/support/__init__.py
Lib/test/test_capi/test_misc.py
Lib/test/test_import/__init__.py
Makefile.pre.in
Modules/_testinternalcapi.c
PCbuild/_freeze_module.vcxproj
PCbuild/_freeze_module.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/config_common.h [new file with mode: 0644]
Python/initconfig.c
Python/interpconfig.c [new file with mode: 0644]