[Python-Dev] threading.Semaphore()'s counter can become negative for non-ints (original) (raw)
Matt Joiner anacrolix at gmail.com
Mon Jan 30 23:11:22 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 ]
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120131/72768633/attachment.html>
- 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 ]