Skip to content

Python initialization: remove _PyMainInterpreterConfig #80625

Description

@vstinner
BPO 36444
Nosy @vstinner
PRs
  • bpo-36444: Remove _PyMainInterpreterConfig #12571
  • bpo-36444: Add _PyCoreConfig._init_main #12572
  • bpo-36444: Rework _Py_InitializeFromConfig() API #12576
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-03-27.15:07:38.576>
    created_at = <Date 2019-03-26.23:53:00.234>
    labels = ['interpreter-core', '3.8']
    title = 'Python initialization: remove _PyMainInterpreterConfig'
    updated_at = <Date 2019-03-27.15:07:38.576>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-03-27.15:07:38.576>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-03-27.15:07:38.576>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2019-03-26.23:53:00.234>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36444
    keywords = ['patch']
    message_count = 4.0
    messages = ['338924', '338929', '338930', '338956']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['12571', '12572', '12576']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue36444'
    versions = ['Python 3.8']

    Activity

    1. vstinner commented on Mar 26, 2019

      @vstinner
      MemberAuthor

      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.

    2. vstinner commented on Mar 27, 2019

      @vstinner
      MemberAuthor

      New changeset 8b9dbc0 by Victor Stinner in branch 'master':
      bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)
      8b9dbc0

    3. vstinner commented on Mar 27, 2019

      @vstinner
      MemberAuthor

      New changeset 484f20d by Victor Stinner in branch 'master':
      bpo-36444: Add _PyCoreConfig._init_main (GH-12572)
      484f20d

    4. vstinner commented on Mar 27, 2019

      @vstinner
      MemberAuthor

      New changeset 5ac27a5 by Victor Stinner in branch 'master':
      bpo-36444: Rework _Py_InitializeFromConfig() API (GH-12576)
      5ac27a5

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions