summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-15 03:36:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-15 03:36:26 (GMT)
commitea7120c7c1b37f12af31dfcc07f849ed0a5287d9 (patch)
treea3ac4b7c5617b7a3c6d7e276ba0639eb681da55c
parent58d23fbb6cfc20a89a26c30cf696f202b641a8c4 (diff)
downloadcpython-ea7120c7c1b37f12af31dfcc07f849ed0a5287d9.zip
cpython-ea7120c7c1b37f12af31dfcc07f849ed0a5287d9.tar.gz
cpython-ea7120c7c1b37f12af31dfcc07f849ed0a5287d9.tar.bz2
Py_SetPythonHome uses static storage #6913
-rw-r--r--Doc/c-api/init.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 4fb428d..2f0f20f 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -374,6 +374,10 @@ Initialization, Finalization, and Threads
Set the default "home" directory, that is, the location of the standard
Python libraries. The libraries are searched in
:file:`{home}/lib/python{version}` and :file:`{home}/lib/python{version}`.
+ The argument should point to a zero-terminated character string in static
+ storage whose contents will not change for the duration of the program's
+ execution. No code in the Python interpreter will change the contents of
+ this storage.
.. cfunction:: char* Py_GetPythonHome()