[Stackless] Stackless for Python 2.5b2 / help required

Jeff Senn senn at maya.com
Thu Aug 3 17:42:06 CEST 2006



Jeff Senn wrote:
> GRRRR... I seem to be suffering from the heat today... the
> case I sent does NOT break.  

Ok here's one that does fail (unfortunately it does use generators
so it's not as simple as I thought)...

def gen(): yield

def foo(a):
     try: a.next()
     except: pass

def test(a):
     a.next()
     try:
	yield
     except: pass
     finally:
	foo(a) # note that unrolling this func call "fixes" the problem

test(gen()).next()


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list