This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Document if argument to Py_SetPath requires static storage.
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, python-dev, snoeberger
Priority: normal Keywords:

Created on 2014-12-24 16:22 by snoeberger, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg233081 - (view) Author: Robert Snoeberger (snoeberger) Date: 2014-12-24 16:22
The documentation for the Py_SetPath API does not indicate if the argument should point to a wide character array in static storage. However, the documentation for Py_GetPath says, "The returned string points into static storage; the caller should not modify its value." This leads me to believe that static storage is required for Py_SetPath.

The documentation for similar API functions, Py_SetPythonHome and Py_SetProgramName, indicates, "The argument should point to a zero-terminated wide character string in static storage whose contents will not change...".
msg233082 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-12-24 16:51
New changeset 08972a47f710 by Benjamin Peterson in branch '3.4':
doucment that Py_SetPath copies its argument (closes #23110)
https://hg.python.org/cpython/rev/08972a47f710

New changeset edf4ea3cfe68 by Benjamin Peterson in branch 'default':
merge 3.4 (#23110)
https://hg.python.org/cpython/rev/edf4ea3cfe68
History
Date User Action Args
2022-04-11 14:58:11adminsetgithub: 67299
2014-12-24 16:51:20python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg233082

resolution: fixed
stage: resolved
2014-12-24 16:22:53snoebergercreate