[Stackless] Stackless for Python 2.5b2 / help required
Jeff Senn
senn at maya.com
Thu Jul 20 17:15:08 CEST 2006
Richard Tew wrote:
> Hi,
>
> I've been working the last few issues out of the Stackless
> 2.5 port, and there are two things which I would
> appreciate some help with:
>
> 1) Testing it. Get the latest from the Stackless trunk at
Seems to pass everything on OS-X except for the problems you mention.
> 2) Helping fix the last remaining bug. I've been
> debugging the problem with test_contextlib quite a
Here's what I get:
======================================================================
ERROR: test_nested_b_swallows (__main__.NestedTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/test/test_contextlib.py", line 185, in test_nested_b_swallows
1/0
File "/Users/senn/src/stackless/Python-2.5b1/Lib/contextlib.py", line 29, in
__exit__
self.gen.throw(type, value, traceback)
File "/Users/senn/src/stackless/Python-2.5b1/Lib/contextlib.py", line 121, in
nested
if exit(*exc):
File "/Users/senn/src/stackless/Python-2.5b1/Lib/contextlib.py", line 22, in
__exit__
self.gen.next()
File "lib/test/test_contextlib.py", line 175, in a
yield
SystemError: error return without exception set
I haven't had a chance to look in depth (I'm betting it has something to
do with more than one pending exception being on the stack of generators and
getting lost in the unwinding -- perhaps the StopIteration or GeneratorExit).
Here is *much* more minimal case that fails in nearly the same way
(hope this helps... I don't have enough time to lend a hand at the moment):
def gen(): yield
def bar():
a = gen()
b = gen()
try:
yield
finally:
b.next()
bar().next()
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list