Killing threads during development.

D

Don Garrett

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top