Skip to content

C-API: Incorrect default value for Py_SetProgramName #88122

Description

@joukewitteveen
BPO 43956
Nosy @vstinner, @joukewitteveen
PRs
  • bpo-43956: Doc/c-api: Fix default program name #24876
  • 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 = None
    created_at = <Date 2021-04-27.17:57:00.754>
    labels = ['3.8', '3.9', '3.10', '3.11', '3.7', 'docs']
    title = 'C-API: Incorrect default value for Py_SetProgramName'
    updated_at = <Date 2021-05-21.15:51:45.214>
    user = 'https://github.com/joukewitteveen'

    bugs.python.org fields:

    activity = <Date 2021-05-21.15:51:45.214>
    actor = 'joukewitteveen'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-04-27.17:57:00.754>
    creator = 'joukewitteveen'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43956
    keywords = []
    message_count = 3.0
    messages = ['392113', '393504', '394123']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'docs@python', 'joukewitteveen']
    pr_nums = ['24876']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue43956'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    1. joukewitteveen commented on Apr 27, 2021

      joukewitteveenmannequin
      MannequinAuthor

      The default program name is hardcoded in Python/initconfig.c:config_init_program_name. It is "python" on Windows, and "python3" elsewhere. The documentation currently suggests that it is "python" everywhere.

      Additionally, the documentation currently says:

      The argument should point to a zero-terminated wide character string in static storage whose contents will not change for the duration of the program’s execution.

      The code, however, duplicates the string, so I am not sure this is true.

    2. vstinner commented on May 12, 2021

      @vstinner
      Member

      I created bpo-44113: "[C API] Deprecate legacy API for configure Python initialization".

    3. joukewitteveen commented on May 21, 2021

      joukewitteveenmannequin
      MannequinAuthor

      It is unclear to me what is holding back the proposed pull request. Is it simply waiting for someone from docs@python to take a look, or did it fall off the radar of vstinner in his related activities to deprecate the legacy API?

    4. transferred this issue fromon Apr 10, 2022
    5. erlend-aasland commented on Jan 12, 2024

      @erlend-aasland
      Contributor

      Closing as out-dated.

    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.10 (EOL)end of life3.11only security fixes3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions