Josh Rosenberg added the comment: Never know whether to comment on issue itself, but just in case:
There are issues with the patch when n < 0 is passed, as n is not sanity checked, which would break the Semaphore invariant (value must be >= 0). n == 0 is also a weird value, but harmless if passed; release(0) would acquire and release the lock but otherwise act as a noop. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10978> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com