[issue8486] [PATCH] threading.Event()

Benjamin VENELLE report at bugs.python.org
Wed Apr 21 14:49:28 CEST 2010

New submission from Benjamin VENELLE <kain94 at gmail.com>:


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.


I thought 'while(not event): do_something()' is much intuitive than 'while(not event.is_set()): do_something()'

components: Library (Lib)
messages: 103835
nosy: Kain94
severity: normal
status: open
title: [PATCH] threading.Event()
type: feature request
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list