Mercurial > cpython-lru_cache-weakref
changeset 67641:525aeaa3d53f
Mention deprecation of PyEval_{Acquire,Release}Lock().
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 16 Jan 2011 18:45:17 +0000 |
| parents | 691bc2c2fc22 |
| children | faec1b5a96db |
| files | Doc/whatsnew/3.2.rst |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Doc/whatsnew/3.2.rst Sun Jan 16 18:41:36 2011 +0000 +++ b/Doc/whatsnew/3.2.rst Sun Jan 16 18:45:17 2011 +0000 @@ -1916,3 +1916,8 @@ 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.
