➜

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.

作者 kristjan.jonsson
收信人 georg.brandl, jyasskin, kristjan.jonsson, pitrou
日期 2010-11-02.00:29:11
SpamBayes Score 4.217803e-06
Marked as misclassified 否
Message-id <1288657753.33.0.884410299435.issue10260@psf.upfronthosting.co.za>
In-reply-to
内容
Good points, Jeffrey.  Documentation can be improved and cond.wait_for(pred) is indeed not guaranteed to wake up when predicate is true unless someone calls notifyAll.

I spent some time thinking of a name.  I tried wait_predicate and predicate_wait, but wait_for seemed natural.  Any other ideas?
How about wait_until_true?

My original method had this as a free function, but I moved it into the Condition because I could see no other kind of primitive that would use it.  I agree that it is unfortunate to pull what is essentially a utility function into the Condition variable, so I am leaning towards keeping it a module function.
历史
日期 用户 动作 参数
2010-11-02 00:29:13kristjan.jonsson修改recipients: + kristjan.jonsson, georg.brandl, pitrou, jyasskin
2010-11-02 00:29:13kristjan.jonsson修改messageid: <1288657753.33.0.884410299435.issue10260@psf.upfronthosting.co.za>
2010-11-02 00:29:12kristjan.jonsson链接issue10260 messages
2010-11-02 00:29:11kristjan.jonsson创建