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

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


https://github.com/python/cpython/commit/cbac6ee3f6aaced5b4f8126199eef89c64ef99fc
commit: cbac6ee3f6aaced5b4f8126199eef89c64ef99fc
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-01T12:13:18-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 6fcdd42d6080d..02af94eda6cc9 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -418,6 +418,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