Message353402
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. |
|
Date |
User |
Action |
Args |
2019-09-27 20:18:46 | taleinat | unlink | issue37883 messages |
2019-09-27 20:13:19 | taleinat | set | recipients:
+ taleinat, docs@python, remi.lapeyre, Ido Michael |
2019-09-27 20:13:19 | taleinat | set | messageid: <1569615199.03.0.126186513206.issue37883@roundup.psfhosted.org> |
2019-09-27 20:13:19 | taleinat | link | issue37883 messages |
2019-09-27 20:13:18 | taleinat | create | |
|