Attempting to write to a full, non-blocking fd might do it. What happens if you direct stdout to /dev/null?
On Sun, 2002-02-24 at 09:46, Steve Spicklemire wrote: > Hi Folks, > > I thought I'd try the fink list.... this is a follow-up to a question I > posted yesterday. I've been digging a little deeper. What sorts of > things cause "resource temporarily unavailable"? > > > > > import visual > > > > import sys > > > > print len(sys.argv) > > > > class foo: > > pass > > > > if len(sys.argv)<2: > > band = foo() > > print "band is a simple class" > > else: > > print "band is a curve" > > band = visual.curve() > > > > > > band.foo1 = visual.array(10*[1],visual.Float) > > band.foo2 = visual.array(10*[2],visual.Float) > > > > i=0 > > > > while 1: > > i += 1 > > print "iter",i, > > bleah = band.foo2 - band.foo1 > > if visual.sum(bleah*bleah) != 10.0: > > print "Hmm. the math is wrong" > > sys.stdout.flush()
signature.asc
Description: This is a digitally signed message part