[Python-checkins] cpython (3.4): doucment that Py_SetPath copies its argument (closes #23110)

benjamin.peterson python-checkins at python.org
Wed Dec 24 17:51:27 CET 2014


https://hg.python.org/cpython/rev/08972a47f710
changeset:   93955:08972a47f710
branch:      3.4
parent:      93952:3d15227b15a8
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Dec 24 10:49:11 2014 -0600
summary:
  doucment that Py_SetPath copies its argument (closes #23110)

files:
  Doc/c-api/init.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -245,6 +245,9 @@
    :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()
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list