[Python-checkins] document threading.Lock.locked() (GH-17427)

Tal Einat webhook-mailer at python.org
Sun Dec 1 15:07:43 EST 2019


https://github.com/python/cpython/commit/fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388
commit: fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388
branch: master
author: idomic <michael.ido at gmail.com>
committer: Tal Einat <taleinat+github at gmail.com>
date: 2019-12-01T22:07:39+02:00
summary:

document threading.Lock.locked() (GH-17427)

files:
M Doc/library/threading.rst

diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 9a68491fbd53f..96989bdd525e0 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -496,6 +496,10 @@ All methods are executed atomically.
 
       There is no return value.
 
+   .. method:: locked()
+      Return true if the lock is acquired.
+
+
 
 .. _rlock-objects:
 



More information about the Python-checkins mailing list