Message103835
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()' |
|
Date |
User |
Action |
Args |
2010-04-21 12:49:28 | Kain94 | set | recipients:
+ Kain94 |
2010-04-21 12:49:28 | Kain94 | set | messageid: <1271854168.83.0.00990516221114.issue8486@psf.upfronthosting.co.za> |
2010-04-21 12:49:27 | Kain94 | link | issue8486 messages |
2010-04-21 12:49:27 | Kain94 | create | |
|