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 Kain94
Recipients Kain94
Date 2010-04-21.12:49:27
SpamBayes Score 0.05158229
Marked as misclassified No
Message-id <1271854168.83.0.00990516221114.issue8486@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I'm suggesting to declare a __bool__() function as an alias for is_set() in Event class from threading package. So Event objects could be used like booleans.

Ex:

I thought 'while(not event): do_something()' is much intuitive than 'while(not event.is_set()): do_something()'
History
Date User Action Args
2010-04-21 12:49:28Kain94setrecipients: + Kain94
2010-04-21 12:49:28Kain94setmessageid: <1271854168.83.0.00990516221114.issue8486@psf.upfronthosting.co.za>
2010-04-21 12:49:27Kain94linkissue8486 messages
2010-04-21 12:49:27Kain94create