[Python-checkins] cpython (3.2): Issue #11329: PyEval_InitThreads() cannot be called before Py_Initialize()

antoine.pitrou python-checkins at python.org
Sun Mar 13 23:29:32 CET 2011


http://hg.python.org/cpython/rev/4c59cd84086f
changeset:   68429:4c59cd84086f
branch:      3.2
parent:      68424:eb8c2f43b251
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Mar 13 23:28:28 2011 +0100
summary:
  Issue #11329: PyEval_InitThreads() cannot be called before Py_Initialize() anymore

files:
  Doc/ACKS.txt
  Doc/c-api/init.rst

diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt
--- a/Doc/ACKS.txt
+++ b/Doc/ACKS.txt
@@ -120,6 +120,7 @@
    * Robert Lehmann
    * Marc-André Lemburg
    * Ross Light
+   * Gediminas Liktaras
    * Ulf A. Lindgren
    * Everett Lipman
    * Mirko Liss
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,8 +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`, :c:func:`Py_SetPath`,
-   and :c:func:`PyEval_InitThreads`. This initializes
+   exception of :c:func:`Py_SetProgramName` 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
@@ -540,8 +539,7 @@
 
    .. index:: single: Py_Initialize()
 
-   This is a no-op when called for a second time.  It is safe to call this function
-   before calling :c:func:`Py_Initialize`.
+   This is a no-op when called for a second time.
 
    .. index:: module: _thread
 

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


More information about the Python-checkins mailing list