This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:56sbtsetrecipients: + sbt, ncoghlan, pitrou, eric.araujo
2012-02-26 15:39:56sbtsetmessageid: <1330270796.77.0.730498399532.issue14116@psf.upfronthosting.co.za>
2012-02-26 15:39:56sbtlinkissue14116 messages
2012-02-26 15:39:56sbtcreate