[Python-Dev] threading.Semaphore()'s counter can become negative for non-ints
Guido van Rossum
guido at python.org
Mon Jan 30 23:14:51 CET 2012
On Mon, Jan 30, 2012 at 2:11 PM, Matt Joiner <anacrolix at gmail.com> wrote:
> It's also potentially lossy if you incremented and decremented until integer
> precision is lost. My vote is for an int type check. No casting.
+1. Anything else is insane scope creep for something called "Semaphore".
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev