A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115995.html below:

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

[Python-Dev] threading.Semaphore()'s counter can become negative for non-ints [Python-Dev] threading.Semaphore()'s counter can become negative for non-intsVictor Stinner victor.stinner at haypocalc.com
Mon Jan 30 00:46:32 CET 2012
>> import threading
>> s = threading.Semaphore(0.5)
>
> But why would you want to pass a float? It seems like API abuse to me.

If something should be changed, Semaphore(arg) should raise a
TypeError if arg is not an integer.

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4