This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Python initialization: remove _PyMainInterpreterConfig
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2019-03-26 23:53 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12571 merged vstinner, 2019-03-27 00:20
PR 12572 merged vstinner, 2019-03-27 00:42
PR 12576 merged vstinner, 2019-03-27 02:04
Messages (4)
msg338924 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-03-26 23:53
The _PyMainInterpreterConfig structure is redundant with _PyCoreConfig: it is a subset but using PyObject*. PyInterpreterState has 2 fields:

    _PyCoreConfig core_config;
    _PyMainInterpreterConfig config;

config parameters can be found in core_config, but using a different type: it introduces redundancy and a risk of inconsitency (if one is modified, but not the other).

_PyMainInterpreterConfig doesn't provide any feature which is not accessible using _PyCoreConfig.
msg338929 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-03-27 00:36
New changeset 8b9dbc017a190d13f717e714630d620adb7c7ac2 by Victor Stinner in branch 'master':
bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)
msg338930 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-03-27 01:04
New changeset 484f20d2ff95cc2e1bea759852da307bc1d1d944 by Victor Stinner in branch 'master':
bpo-36444: Add _PyCoreConfig._init_main (GH-12572)
msg338956 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-03-27 12:40
New changeset 5ac27a50ff2b42216746fedc0522a92c53089bb3 by Victor Stinner in branch 'master':
bpo-36444: Rework _Py_InitializeFromConfig() API (GH-12576)
Date User Action Args
2022-04-11 14:59:13adminsetgithub: 80625
2019-03-27 15:07:38vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-03-27 12:40:20vstinnersetmessages: + msg338956
2019-03-27 02:04:11vstinnersetpull_requests: + pull_request12520
2019-03-27 01:04:19vstinnersetmessages: + msg338930
2019-03-27 00:42:58vstinnersetpull_requests: + pull_request12517
2019-03-27 00:36:19vstinnersetmessages: + msg338929
2019-03-27 00:20:02vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request12516
2019-03-26 23:53:00vstinnercreate