threading questions
Aahz
aahz at pythoncraft.com
Fri Nov 1 23:19:16 EST 2002
In article <apvrd4$a5b$1 at ocasysi.rubbernet.net>,
Oleg Leschov <kalmas at udm.ru> wrote:
>
>1. I want to be able, using whatever the threading.get_ident() returns
>(perhaps), to determine the state of thread (does it still run or not),
>and to kill the thread, in case that it, for example, is waiting for
>some data from socket whose network interface has died unexpectedly.
You can't kill threads. Use timeoutsocket.py
(Note: Python 2.3 will contain the functionality of timeoutsocket --
batteries included!)
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list
mailing list