[issue1626] threading.Thread objects are not reusable after join()

Sebastien BRACQUEMONT report at bugs.python.org
Fri Dec 14 13:11:47 CET 2007


New submission from Sebastien BRACQUEMONT:

After a call to join() method on a Threading.thread object,there is no
way to successfully call start() method on it.

Indeed, the __started flag is not reset in the theading.Thread join()
method. 
Since the start() method checks for __started flag , this flag is always  
true after a first start, despite the thread was effectively stopped by
the join() call

Since it's perfectly legal to store a threading.Thread object in a
variable or an object member, i think the join() behaviour is odd
because it prevents instance reusability.

----------
components: Library (Lib)
messages: 58622
nosy: dweeves
severity: normal
status: open
title: threading.Thread objects are not reusable after join()
type: behavior
versions: Python 2.4, Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1626>
__________________________________


More information about the Python-bugs-list mailing list