[issue8486] threading.Event()

2010-04-21 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #5998, which was rejected. -- nosy: +r.david.murray priority: -> normal resolution: -> rejected stage: -> committed/rejected status: open -> closed superseder: -> Add __bool__ to threading.Event and multiprocessing.Event ___

[issue8486] threading.Event()

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Using a boolean would look almostly the same so why to reinvent the > wheel ? :) Hmm, /you/ are reinventing the wheel by suggesting to use an Event instead of a simple boolean. Just loop like this: while not self.stop_me: # etc. and set the stop_me attri