Hi all,
I am trying to run pypy with the jit compiler.

I want to report some code I have that is failing, while with CPython it
is not.
I was able to isolate the the problem in a small testcase I am
attaching. It is failing after exactly 1000 next() calls to the
generator created by b().

  File "pypyfail.py", line 6, in b
    b= (vv[i] for i in [0])
TypeError: object <code object <genexp>, file 'pypyfail.py', line 6> is
not callable


I built the latest SVN trunk snapshot of pypy with
pypy/translator/goal/translate.py -Ojit

Btw, the executable is called "pypy-c" rather than "pypy-c-jit", is that ok?

Thank you in advance,
Ludovico

def b():
    vv = [0, 1, 2, 3, 4, 5]
    while True:
        b= (vv[i] for i in [0])
        yield b

g2 = b()

for i in g2:
    print i

_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to