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

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


https://github.com/python/cpython/commit/d300c0e845cdb898b0950642ed75dd0ae883ad12
commit: d300c0e845cdb898b0950642ed75dd0ae883ad12
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-01T12:14:26-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 fd815ef01716d..93ea4bda7cd7a 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -488,6 +488,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