[issue32208] Improve semaphore docmentation

Garrett Berg report at bugs.python.org
Sun Dec 3 22:23:24 EST 2017


Garrett Berg <googberg at gmail.com> added the comment:

It may be desirable to change:

> Once awoken, decrement the counter by 1.

to

> Once awoke, decrement the counter (which is guaranteed to be positive) by 1.

Although this could be considered obvious since the counter can never go below zero.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32208>
_______________________________________


More information about the Python-bugs-list mailing list