Idle bug

Jive Dadson jdadson at
Mon Nov 5 23:45:45 CET 2001

To the keepers of the bug list, whoever they may be.

Start Idle under Windows NT 4.x (idle.pyw).  Import the following module that's 
included at the bottom of this message.  (It's from the book _Core Python Programming_ 
by Wesley J. Chun.)  Idle will lock up.  You have to kill it from the Task Manager.


import threading
from time import sleep, time, ctime

loops = [4,2]

def loop(nloop, nsec):
	print 'start ', nloop, ' at: ', ctime(time())
	print 'loop ', nloop, ' done  at ', ctime(time())
def main():
		print 'starting threads'
		threads = []
		nloops = range(len(loops))
		for i in nloops:
			t = threading.Thread(target=loop,args=(i,loops[i]))
		for i in nloops:
		for i in nloops:
		print 'all done at ', ctime(time())
if __name__ == '__main__':

More information about the Python-list mailing list