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-May/119301.html below:

Make AcquirerProxy.acquire() support timeout argument

[Python-Dev] cpython: Make AcquirerProxy.acquire() support timeout argument [Python-Dev] cpython: Make AcquirerProxy.acquire() support timeout argumentshibturn shibturn at gmail.com
Sun May 6 19:58:10 CEST 2012
On 06/05/2012 5:07pm, Antoine Pitrou wrote:
> On Sun, 06 May 2012 17:56:55 +0200
>> summary:
>>    Make AcquirerProxy.acquire() support timeout argument
>
> Should it have a Misc/NEWS entry? (and a doc addition perhaps?)

Since proxies for locks/semaphores are supposed to work the same way as 
the proxied object from threading, one could argue that the lack of 
support in 3.2 was a bug.

I notice now that multiprocessing.*.acquire() and threading.*.wait() 
treat negative timeouts as zero timeouts.  On the other hand, 
threading.*.acquire() treat negative timeouts as infinite.

Maybe these inconsistencies should be documented or eliminated?

As currently implemented AcquirerProxy.acquire() treats negative 
timeouts as infinite.

Cheers

Richard

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