Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-API: Incorrect default value for Py_SetProgramName #88122

Closed
joukewitteveen mannequin opened this issue Apr 27, 2021 · 4 comments
Closed

C-API: Incorrect default value for Py_SetProgramName #88122

joukewitteveen mannequin opened this issue Apr 27, 2021 · 4 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir

Comments

@joukewitteveen
Copy link
Mannequin

joukewitteveen mannequin commented Apr 27, 2021

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']

    @joukewitteveen
    Copy link
    Mannequin Author

    joukewitteveen mannequin commented Apr 27, 2021

    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.

    @joukewitteveen joukewitteveen mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Apr 27, 2021
    @joukewitteveen joukewitteveen mannequin added docs Documentation in the Doc dir 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Apr 27, 2021
    @joukewitteveen joukewitteveen mannequin added the docs Documentation in the Doc dir label Apr 27, 2021
    @vstinner
    Copy link
    Member

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

    @joukewitteveen
    Copy link
    Mannequin Author

    joukewitteveen mannequin commented May 21, 2021

    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?

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @erlend-aasland
    Copy link
    Contributor

    Closing as out-dated.

    @erlend-aasland erlend-aasland closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants