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 pitrou
Recipients Kain94, pitrou
Date 2010-04-21.14:07:23
SpamBayes Score 0.014040183
Marked as misclassified No
Message-id <1271858973.3394.9.camel@localhost>
In-reply-to <1271857965.51.0.00702373681995.issue8486@psf.upfronthosting.co.za>
Content
> 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 attribute to True when you want to stop your thread.
History
Date User Action Args
2010-04-21 14:07:25pitrousetrecipients: + pitrou, Kain94
2010-04-21 14:07:23pitroulinkissue8486 messages
2010-04-21 14:07:23pitroucreate