[issue37608] _thread: acquire_lock, release_lock still in use while declared to be "gone" in Documentation

徐靖 report at bugs.python.org
Wed Jul 17 06:23:49 EDT 2019


New submission from 徐靖 <shiyuchongf at gmail.com>:

In https://docs.python.org/3/whatsnew/3.0.html#library-changes Documentation, it said "Cleanup of the thread module: acquire_lock() and release_lock() are gone; use acquire() and release() instead."
But in 3.7, I can still find 
{"acquire_lock", (PyCFunction)(void(*)(void))lock_PyThread_acquire_lock,
     METH_VARARGS | METH_KEYWORDS, acquire_doc},
in _threadmodule.c line 217, which defined this function. And in my code ,these functions work, without any warning or error.
So maybe the Documentation should be changed, or the support of these functions should be removed, or at least add a warning.
It has no effect on code, but truly confusing and waste me an hour to search for why.

----------
assignee: docs at python
components: Documentation
messages: 348053
nosy: docs at python, shiyuchong
priority: normal
severity: normal
status: open
title: _thread: acquire_lock,release_lock still in use while declared to be "gone" in Documentation
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37608>
_______________________________________


More information about the Python-bugs-list mailing list