Skip to content

Commit ebeb903

Browse files
committed
Mention deprecation of PyEval_{Acquire,Release}Lock().
1 parent 2e8ec22 commit ebeb903

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/whatsnew/3.2.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,3 +1916,8 @@ require changes to your code:
19161916
occurs, rather than a generic :exc:`~ssl.SSLError`.
19171917

19181918
(Contributed by Antoine Pitrou, :issue:`10272`.)
1919+
1920+
* The misleading functions :c:func:`PyEval_AcquireLock()` and
1921+
:c:func:`PyEval_ReleaseLock()` have been officially deprecated. The
1922+
thread-state aware APIs (such as :c:func:`PyEval_SaveThread()`
1923+
and :c:func:`PyEval_RestoreThread()`) should be used instead.

0 commit comments

Comments
 (0)