2012/1/28 T.B. <bauerto...@gmail.com>: > Hello python-dev, > > This is probably worth of a bug report: While looking at threading.py I > noticed that Semaphore's counter can go below zero. This is opposed to the > docs: "The counter can never go below zero; ...". Just try: > > import threading > s = threading.Semaphore(0.5)
But why would you want to pass a float? It seems like API abuse to me. -- Regards, Benjamin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com