From: Antoine Pitrou Date: Sun, 16 Jan 2011 18:45:17 +0000 (+0000) Subject: Mention deprecation of PyEval_{Acquire,Release}Lock(). X-Git-Tag: v3.2rc2~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebeb90339de196d97ee197afad5e4e4a7f672a50;p=python Mention deprecation of PyEval_{Acquire,Release}Lock(). --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index d9823ca681..9643dbf186 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -1916,3 +1916,8 @@ require changes to your code: occurs, rather than a generic :exc:`~ssl.SSLError`. (Contributed by Antoine Pitrou, :issue:`10272`.) + +* The misleading functions :c:func:`PyEval_AcquireLock()` and + :c:func:`PyEval_ReleaseLock()` have been officially deprecated. The + thread-state aware APIs (such as :c:func:`PyEval_SaveThread()` + and :c:func:`PyEval_RestoreThread()`) should be used instead.