Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b33bb89

Browse files
committed
doucment that Py_SetPath copies its argument (closes #23110)
1 parent c8d94ba commit b33bb89

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/c-api/init.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ Process-wide parameters
245245
:data:`sys.exec_prefix` to be empty. It is up to the caller to modify these
246246
if required after calling :c:func:`Py_Initialize`.
247247
248+
The path argument is copied internally, so the caller may free it after the
249+
call completes.
250+
248251
249252
.. c:function:: const char* Py_GetVersion()
250253

0 commit comments

Comments
 (0)