[Python-Dev] threading.Semaphore()'s counter can become negative for non-ints

Matt Joiner anacrolix at gmail.com
Mon Jan 30 23:11:22 CET 2012


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>


More information about the Python-Dev mailing list