Message154361
> IIUC returning True is not incorrect, only useless. In the stdlib I
> usually see “with lock:”. Can you tell what is the use case for
> accessing the condition object inside the context block? Does it
> apply only to Condition or also to *Lock and Semaphore?
I was going to do something like
with Condition() as c:
Thread(target=foo, args=(c,...)).start()
c.wait_for(...)
But I will agree that I don't have a compelling use case. |
|
Date |
User |
Action |
Args |
2012-02-26 15:39:56 | sbt | set | recipients:
+ sbt, ncoghlan, pitrou, eric.araujo |
2012-02-26 15:39:56 | sbt | set | messageid: <1330270796.77.0.730498399532.issue14116@psf.upfronthosting.co.za> |
2012-02-26 15:39:56 | sbt | link | issue14116 messages |
2012-02-26 15:39:56 | sbt | create | |
|