]> granicus.if.org Git - python/commitdiff
doucment that Py_SetPath copies its argument (closes #23110)
authorBenjamin Peterson <benjamin@python.org>
Wed, 24 Dec 2014 16:49:11 +0000 (10:49 -0600)
committerBenjamin Peterson <benjamin@python.org>
Wed, 24 Dec 2014 16:49:11 +0000 (10:49 -0600)
Doc/c-api/init.rst

index 59af41bd5aaee535991b897a8603a5dde16fca66..eb542de4d8b01fc4a6fb6c00da4d7805bff093de 100644 (file)
@@ -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()