I was reminded of this one while working on the Spyce/Durus demo to make it a better example of using Durus in a real application.
What is wrong with the following code?
import time, threading finished = False def foo(): import sys sys.stderr.write('testing') global finished finished = True threading.Thread(target=foo).start() while not finished: time.sleep(1)
import A print 'finished'
Update: fixed A.py so there was only one problem.