Browse Source
bpo-42260: Compute the path config in the main init (GH-23211)
bpo-42260: Compute the path config in the main init (GH-23211)
The path configuration is now computed in the "main" initialization. The core initialization no longer computes it. * Add _PyConfig_Read() function to read the configuration without computing the path configuration. * pyinit_core() no longer computes the path configuration: it is now computed by init_interp_main(). * The path configuration output members of PyConfig are now optional: * executable * base_executable * prefix * base_prefix * exec_prefix * base_exec_prefix * _PySys_UpdateConfig() now skips NULL strings in PyConfig. * _testembed: Rename test_set_config() to test_init_set_config() for consistency with other tests.pull/23220/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 85 additions and 74 deletions
-
1Include/internal/pycore_initconfig.h
-
26Lib/test/_test_embed_set_config.py
-
4Programs/_testembed.c
-
47Python/initconfig.c
-
59Python/pylifecycle.c
-
22Python/sysmodule.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue