def thing (x): global z while 1: W ('[%d]' % (z,)) z += x shrike._yield() return z
def thing1 (c): global n while c: r = random.randint (0, 100) n -= r c -= 1 shrike._yield() print 'exited thing1'