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 <>
Looking at Lib/ 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.
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: <>
2019-09-27 20:13:19taleinatlinkissue37883 messages
2019-09-27 20:13:18taleinatcreate