[Python-bugs-list] [ python-Bugs-751260 ] Thread in threading.py can only be started once

SourceForge.net noreply@sourceforge.net
Mon, 09 Jun 2003 15:54:32 -0700


Bugs item #751260, was opened at 2003-06-09 06:16
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=751260&group_id=5470

Category: Threads
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Schuenzel (yahoo_alive)
Assigned to: Nobody/Anonymous (nobody)
Summary: Thread in threading.py can only be started once

Initial Comment:
class Thread doesn't reset self.__started after run() has terminated, so one cannot reuse 
the thread class and run start() again.


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-06-09 18:54

Message:
Logged In: YES 
user_id=31435

It's true that Thread instances can't be restarted, but you 
haven't made a case for calling that "a bug".  Python's 
threading model is fashioned loosely on Java's, and, like 
Java's, limits thread instances to one invocation by design.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=751260&group_id=5470