[Python-Dev] threading.Semaphore()'s counter can become negative for non-ints (original) (raw)
Guido van Rossum guido at python.org
Mon Jan 30 23:14:51 CET 2012
- Previous message: [Python-Dev] threading.Semaphore()'s counter can become negative for non-ints
- Next message: [Python-Dev] threading.Semaphore()'s counter can become negative for non-ints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Previous message: [Python-Dev] threading.Semaphore()'s counter can become negative for non-ints
- Next message: [Python-Dev] threading.Semaphore()'s counter can become negative for non-ints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]