Message154361
| Author |
sbt |
| Recipients |
eric.araujo, ncoghlan, pitrou, sbt |
| Date |
2012年02月26日.15:39:56 |
| SpamBayes Score |
0.00054603844 |
| Marked as misclassified |
No |
| Message-id |
<1330270796.77.0.730498399532.issue14116@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| 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 |
|