From: Benjamin Peterson Date: Wed, 24 Dec 2014 16:49:11 +0000 (-0600) Subject: doucment that Py_SetPath copies its argument (closes #23110) X-Git-Tag: v3.5.0a1~279^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b33bb89b1ad69976898d05949721a06ce7287b2c;p=python doucment that Py_SetPath copies its argument (closes #23110) --- diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 59af41bd5a..eb542de4d8 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()