]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jul 2020 03:25:14 +0000 (20:25 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 03:25:14 +0000 (20:25 -0700)
(cherry picked from commit 9ce8132e1f2339cfe116dfd4795574182c2245b4)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Include/ceval.h

index df5253900eea71af789d7d40354e0df3d6c1933d..0f372e2044a1c8ab4ba600331107b4f2dfcd2d14 100644 (file)
@@ -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);