Message87587
I think it would allow for more pythonic code if the threading.Event and
multiprocessing.Event classes had the __bool__ special attribute. This
would allow doing "if e: ..." instead of "if e.is_set(): ...".
This could be backported to 2.x really easily by just replacing __bool__
to __nonzero__.
See also the thread starting here:
http://mail.python.org/pipermail/python-ideas/2009-May/004617.html |
|
Date |
User |
Action |
Args |
2009-05-11 21:24:19 | flub | set | recipients:
+ flub |
2009-05-11 21:24:19 | flub | set | messageid: <1242077059.81.0.31819803999.issue5998@psf.upfronthosting.co.za> |
2009-05-11 21:24:18 | flub | link | issue5998 messages |
2009-05-11 21:24:17 | flub | create | |
|