[Python-checkins] cpython (3.2): Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith

sandro.tosi python-checkins at python.org
Sat Jan 7 18:36:14 CET 2012


http://hg.python.org/cpython/rev/69527695eff8
changeset:   74295:69527695eff8
branch:      3.2
parent:      74292:eb39d862a250
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Sat Jan 07 18:34:07 2012 +0100
summary:
  Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@

files:
  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
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -29,7 +29,7 @@
 
    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 :c:func:`Py_SetProgramName` and :c:func:`Py_SetPath`.  This initializes
+   exception of :c:func:`Py_SetProgramName`, :c:func:`Py_SetPythonHome` and :c:func:`Py_SetPath`.  This initializes
    the table of loaded modules (``sys.modules``), and creates the fundamental
    modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`.  It also initializes
    the module search path (``sys.path``). It does not set ``sys.argv``; use

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


More information about the Python-checkins mailing list