GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C-API: Incorrect default value for Py_SetProgramName · Issue #88122 · python/cpython

C-API: Incorrect default value for Py_SetProgramName #88122

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
C-API: Incorrect default value for Py_SetProgramName#88122
Copy link
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dir

Description

joukewitteveen
mannequin
opened on Apr 27, 2021
Issue body actions
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

      @joukewitteveen
      joukewitteveenmannequin
      on Apr 27, 2021
      MannequinAuthor
      More actions

      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. joukewitteveen
      added
      3.7 (EOL)end of lifeend of life
      3.8 (EOL)end of lifeend of life
      3.9 (EOL)end of lifeend of life
      3.10 (EOL)end of lifeend of life
      3.11only security fixesonly security fixes
      on Apr 27, 2021
    3. joukewitteveen
      assigned
      docspython
      on Apr 27, 2021
    4. joukewitteveen
      added
      docsDocumentation in the Doc dirDocumentation in the Doc dir
      3.7 (EOL)end of lifeend of life
      3.8 (EOL)end of lifeend of life
      3.9 (EOL)end of lifeend of life
      3.10 (EOL)end of lifeend of life
      3.11only security fixesonly security fixes
      on Apr 27, 2021
    5. joukewitteveen
      assigned
      docspython
      on Apr 27, 2021
    6. joukewitteveen
      added
      docsDocumentation in the Doc dirDocumentation in the Doc dir
      on Apr 27, 2021
    7. vstinner commented on May 12, 2021

      @vstinner
      vstinner
      on May 12, 2021
      Member
      More actions

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

    8. joukewitteveen commented on May 21, 2021

      @joukewitteveen
      joukewitteveenmannequin
      on May 21, 2021
      MannequinAuthor
      More actions

      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?

    9. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    10. erlend-aasland commented on Jan 12, 2024

      @erlend-aasland
      erlend-aasland
      on Jan 12, 2024
      Contributor
      More actions

      Closing as out-dated.

    11. erlend-aasland
      closed this as not plannedon Jan 12, 2024
    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 lifeend of life3.11only security fixesonly security fixes3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.