This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients Ido Michael, docs@python, remi.lapeyre, taleinat
Date 2019-09-27.20:13:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569615199.03.0.126186513206.issue37883@roundup.psfhosted.org>
In-reply-to
Content
Looking at Lib/threading.py and Modules/_threadmodule.c, it actually appears that RLock.locked() is only implemented by the C implementation, but not the Python implementation which is used as a backup.

If we're going to make the locked() method more visible by documenting it, we should expose such a method on the Python implementation, so that threading.RLock will indeed always have a locked() method.

From a quick look, it seems that the Python RLock's _is_owned() method might be just what we need, but that should be validated.
History
Date User Action Args
2019-09-27 20:18:46taleinatunlinkissue37883 messages
2019-09-27 20:13:19taleinatsetrecipients: + taleinat, docs@python, remi.lapeyre, Ido Michael
2019-09-27 20:13:19taleinatsetmessageid: <1569615199.03.0.126186513206.issue37883@roundup.psfhosted.org>
2019-09-27 20:13:19taleinatlinkissue37883 messages
2019-09-27 20:13:18taleinatcreate