summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-12-24 16:49:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-12-24 16:49:11 (GMT)
commitb33bb89b1ad69976898d05949721a06ce7287b2c (patch)
treef6710f5a90e729153759e052d7a93e429e64a470 /Doc
parentc8d94ba8f40b2bfe65ede0d9b2d46fe1092900ed (diff)
downloadcpython-b33bb89b1ad69976898d05949721a06ce7287b2c.zip
cpython-b33bb89b1ad69976898d05949721a06ce7287b2c.tar.gz
cpython-b33bb89b1ad69976898d05949721a06ce7287b2c.tar.bz2
doucment that Py_SetPath copies its argument (closes #23110)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/init.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 59af41b..eb542de 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -245,6 +245,9 @@ Process-wide parameters
:data:`sys.exec_prefix` to be empty. It is up to the caller to modify these
if required after calling :c:func:`Py_Initialize`.
+ The path argument is copied internally, so the caller may free it after the
+ call completes.
+
.. c:function:: const char* Py_GetVersion()