diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-01-07 17:32:06 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-01-07 17:32:06 (GMT) |
commit | e5f93ef268bec844159ae84ac91f9aa46d987729 (patch) | |
tree | 7dbc64584e21550be8be65023cc6022092cb4a55 /Doc/c-api | |
parent | f788cf70f88a6e9a184bd90d47e1400aca3e8b4f (diff) | |
download | cpython-e5f93ef268bec844159ae84ac91f9aa46d987729.zip cpython-e5f93ef268bec844159ae84ac91f9aa46d987729.tar.gz cpython-e5f93ef268bec844159ae84ac91f9aa46d987729.tar.bz2 |
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/init.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index c323eef..a53b494 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -31,7 +31,7 @@ Initializing and finalizing the interpreter Initialize the Python interpreter. In an application embedding Python, this should be called before using any other Python/C API functions; with the - exception of :cfunc:`Py_SetProgramName`, :cfunc:`PyEval_InitThreads`, + exception of :cfunc:`Py_SetProgramName`, :cfunc:`Py_SetPythonHome`, :cfunc:`PyEval_InitThreads`, :cfunc:`PyEval_ReleaseLock`, and :cfunc:`PyEval_AcquireLock`. This initializes the table of loaded modules (``sys.modules``), and creates the fundamental modules :mod:`__builtin__`, :mod:`__main__` and :mod:`sys`. It also initializes |