Python IDLE compatible with multithreading?
问题 It seems that IDLE (part of the standard Python Windows install) will not execute multithreaded programs correctly without nasty hangs or bugout crashes. Does anyone know of a way to fix this? The following program will always hang in IDLE but complete normally when executed with the Python interpreter directly: import threading, time printLock = threading.Lock() def pl(s): printLock.acquire() print s printLock.release() class myThread( threading.Thread ): def run(self): i = 0 for i in range