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

Miss Islington (bot) webhook-mailer at python.org
Sun Dec 1 15:12:14 EST 2019


https://github.com/python/cpython/commit/864207181d74800cf3f4e6c45b637854c65aa415
commit: 864207181d74800cf3f4e6c45b637854c65aa415
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-01T12:12:09-08:00
summary:

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

(cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388)

Co-authored-by: idomic <michael.ido at gmail.com>

files:
M Doc/library/threading.rst

diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index e16f78c204771..9228e11442374 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -448,6 +448,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