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 flub
Recipients flub
Date 2009-05-11.21:24:17
SpamBayes Score 8.316349e-06
Marked as misclassified No
Message-id <1242077059.81.0.31819803999.issue5998@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-05-11 21:24:19flubsetrecipients: + flub
2009-05-11 21:24:19flubsetmessageid: <1242077059.81.0.31819803999.issue5998@psf.upfronthosting.co.za>
2009-05-11 21:24:18flublinkissue5998 messages
2009-05-11 21:24:17flubcreate