[issue45311] Threading Semaphore and BoundedSemaphore release method implementation improvement
Andrei Kulakov
report at bugs.python.org
Wed Oct 20 10:22:08 EDT 2021
Andrei Kulakov <andrei.avk at gmail.com> added the comment:
Besart: with the current code, if there's a valueError when releasing a thread, it will be retried again n times, with your change, n waiting threads will be released, even if some of them fail with ValueError.
I don't know enough about threading module to say if this change should be made.
----------
nosy: +andrei.avk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45311>
_______________________________________
More information about the Python-bugs-list
mailing list