[Python-checkins] bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)

Inada Naoki webhook-mailer at python.org
Sun Jul 5 22:48:39 EDT 2020


https://github.com/python/cpython/commit/9ce8132e1f2339cfe116dfd4795574182c2245b4
commit: 9ce8132e1f2339cfe116dfd4795574182c2245b4
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-07-06T11:48:30+09:00
summary:

bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)

files:
M Include/ceval.h

diff --git a/Include/ceval.h b/Include/ceval.h
index df5253900eea7..0f372e2044a1c 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -128,8 +128,12 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
 
 Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
 Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
+/* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI.
+ * They will be removed from this header file in the future version.
+ * But they will be remained in ABI until Python 4.0.
+ */
 Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
-/* Py_DEPRECATED(3.2) */ PyAPI_FUNC(void) PyEval_ReleaseLock(void);
+Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
 



More information about the Python-checkins mailing list