stopping a threaded script

Diez B. Roggisch nospam-deets at web.de
Wed Feb 4 08:42:01 EST 2004


> When testing scripts, I normally type 'ctrl' combined with the key 'c'
> to abort the script, however, this doesn't work with scripts that are
> threaded. What's the proper way to abort a threaded program?

If its the proper way is a question of taste, however it is also possible
with C-c in m-threaded apps. Use the Thread.setDaemon-method - then your
app will go away when C-c is pressed.

Regards,

Diez



More information about the Python-list mailing list