Author shiyuchong
Recipients docs@python, shiyuchong
Date 2019-07-17.10:23:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In 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.
Date User Action Args
2019-07-17 10:23:49shiyuchongsetrecipients: + shiyuchong, docs@python
2019-07-17 10:23:49shiyuchongsetmessageid: <>
2019-07-17 10:23:49shiyuchonglinkissue37608 messages
2019-07-17 10:23:49shiyuchongcreate