[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-05-21 Thread Jouke Witteveen


Jouke Witteveen  added the comment:

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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-05-12 Thread STINNER Victor


STINNER Victor  added the comment:

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

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-04-27 Thread Jouke Witteveen

New submission from Jouke Witteveen :

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.

--
assignee: docs@python
components: Documentation
messages: 392113
nosy: docs@python, joukewitteveen
priority: normal
pull_requests: 24356
severity: normal
status: open
title: C-API: Incorrect default value for Py_SetProgramName
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com