This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author makaron
Recipients
Date 2003-08-23.09:09:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Internal variable __started remains set to True/1 even
if thread is already terminated, this situation will
generate assertion error when .start is invoked second
time.

demo.py

import time
import threading

done = threading.Event()
def demo():
	print 'bip'
	done.set()

t=threading.Thread(target=demo)
t.start()
while not done.isSet():
	time.sleep(0.1)
done.clear()
print 'returned'
t.start()
History
Date User Action Args
2007-08-23 14:16:18adminlinkissue793687 messages
2007-08-23 14:16:18admincreate