You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C-API: Incorrect default value for Py_SetProgramName #88122
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.
I created bpo-44113: "[C API] Deprecate legacy API for configure Python initialization".
joukewitteveen commented on May 21, 2021
joukewitteveenmannequin
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?
Activity
joukewitteveen commentedon 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 code, however, duplicates the string, so I am not sure this is true.
vstinner commentedon May 12, 2021
I created bpo-44113: "[C API] Deprecate legacy API for configure Python initialization".
joukewitteveen commentedon 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?
erlend-aasland commentedon Jan 12, 2024
Closing as out-dated.