From: Antoine Pitrou Date: Tue, 15 Mar 2011 19:22:50 +0000 (+0100) Subject: Followup to 4c59cd84086f: add an entry in the porting guide and a "versionchanged... X-Git-Tag: v3.2.1b1~296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bb9877d8079ccfc4f5b5448ba111392140112e4;p=python Followup to 4c59cd84086f: add an entry in the porting guide and a "versionchanged" attribute. --- diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 2641c8b7f2..623bd7cea3 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -537,10 +537,11 @@ code, or when embedding the Python interpreter: 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. + .. versionchanged:: 3.2 + This function cannot be called before :c:func:`Py_Initialize()` anymore. + .. index:: module: _thread .. note:: diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 3829ce14f3..20ce228d51 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -2698,3 +2698,7 @@ require changes to your code: 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. +