Charles-François Natali added the comment: > As for accepting negative initialization values, it sounds like a reasonable > request. One reason for rejecting would be if it makes writing a fast > implementation harder. Also, multiprocessing.Semaphore should be kept > compatible with threading.Semaphore.
Unfortunately, POSIX semaphore don't support negative initial value. Multiprocessing semaphores are based on POSIX semaphores on Unix, and one can imagine an alternate implementation of Semaphore based atop POSIX semaphores. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17374> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com