[issue45311] Threading Semaphore and BoundedSemaphore release method implementation improvement

2021-10-21 Thread Besart Dollma
Besart Dollma added the comment: This is another illogical behaviour, if I am trying to release 5 threads, and I fail the releasing the first one, why should I try the first one 5 times? -- ___ Python tracker <https://bugs.python.org/issue45

[issue45311] Threading Semaphore and BoundedSemaphore release method implementation improvement

2021-09-28 Thread Besart Dollma
New submission from Besart Dollma : Hi, I was looking at the implementation of Semaphore and BoundedSemaphore in threading.py and I saw that `notify` is called on a loop n times while it supports an n parameter. https://github.com/python/cpython/blob