From b33bb89b1ad69976898d05949721a06ce7287b2c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 24 Dec 2014 10:49:11 -0600 Subject: doucment that Py_SetPath copies its argument (closes #23110) --- Doc/c-api/init.rst | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v0.12