Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Killing threads during development.

Reply
Thread Tools

Killing threads during development.

 
 
Don Garrett
Guest
Posts: n/a
 
      06-05-2005
I've been developing with external multi-threaded libraries recently.
I find it difficult to use the Python prompt to experiment with these
libraries because there isn't any way to just shutdown all threads and
try things again.

If I try to exit the prompt with background threads running, then
Python hangs and I have to kill the process to exit. Ctrl C won't do
it.

Is there some way to brutally kill all background threads? Just for
development purposes?

Note:
This isn't an insurmountable problem. If I write test scripts and run
them from the command line I can still kill them easily. I just find it
frustrating not be to able to explore interactively while working with
a new library.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing threads (was Re: Cancel or timeout a long running regularexpression) Chris Angelico Python 2 09-21-2011 09:25 AM
Killing threads ericwoodworth@gmail.com Python 13 04-06-2009 02:36 PM
Killing subservient threads jimzat Python 6 03-12-2009 03:34 PM
Killing Threads & Processes on Windows x1 Ruby 15 11-10-2005 01:10 AM
Start/Stop Threads Without Killing Them cppaddict Java 20 08-11-2004 07:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57