[Python-checkins] cpython (3.2): Followup to 4c59cd84086f: add an entry in the porting guide and a
antoine.pitrou
python-checkins at python.org
Tue Mar 15 20:23:35 CET 2011
http://hg.python.org/cpython/rev/2c57a8f293ba
changeset: 68511:2c57a8f293ba
branch: 3.2
parent: 68509:9daa9a4c4cc4
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Mar 15 20:22:50 2011 +0100
summary:
Followup to 4c59cd84086f: add an entry in the porting guide and a "versionchanged" attribute.
files:
Doc/c-api/init.rst
Doc/whatsnew/3.2.rst
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
@@ -537,9 +537,10 @@
operations such as ``PyEval_ReleaseThread(tstate)``. It is not needed before
calling :c:func:`PyEval_SaveThread` or :c:func:`PyEval_RestoreThread`.
- .. index:: single: Py_Initialize()
+ This is a no-op when called for a second time.
- This is a no-op when called for a second time.
+ .. versionchanged:: 3.2
+ This function cannot be called before :c:func:`Py_Initialize()` anymore.
.. index:: module: _thread
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -2698,3 +2698,7 @@
a new function, :func:`asyncore.handle_accepted`, was added to replace it.
(Contributed by Giampaolo Rodola in :issue:`6706`.)
+
+* Due to the new :term:`GIL` implementation, :c:func:`PyEval_InitThreads()`
+ cannot be called before :c:func:`Py_Initialize()` anymore.
+
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list