[issue31977] threading.Condition can not work with threading.Semaphore

2017-11-07 Thread
Change by 张晓林 <petelin1...@gmail.com>: -- type: resource usage -> behavior ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31977> ___ _

[issue31977] threading.Condition can not work with threading.Semaphore

2017-11-07 Thread
New submission from 张晓林 <petelin1...@gmail.com>: the python document say Condition work will Locks, like RLock... but i find it not work with Semaphore, because Condition._is_owned is like this def _is_owned(self): # Return True if lock is owned by current_