***Stopping a Python Thread***

Steve Lamb grey at despair.dmiyu.org
Fri Mar 15 15:53:35 EST 2002


On 15 Mar 2002 12:45:48 -0800, Marc <mnations at airmail.net> wrote:
> command to try and kill it all. But the thread keeps running and does
> not stop. How do I kill this thread before it completes?

    You must stop each thread from inside the thread.  So have some flag
somewhere that it can check to see if it needs to shut down early.

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
    To email: Don't despair!   |  -- Lenny Nero, Strange Days
-------------------------------+---------------------------------------------



More information about the Python-list mailing list