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.4.3rc1~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b33bb89b1ad69976898d05949721a06ce7287b2c;p=thirdparty%2FPython%2Fcpython.git doucment that Py_SetPath copies its argument (closes #23110) --- diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 59af41bd5aae..eb542de4d8b0 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()