You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello up there. I've tried to run CPython's pystone with Grumpy but instead of regular output it just prints "StopIteration" without any traceback. To try to see what is going on I've edded explicit try / traceback.print_exc() around main() and then it prints:
(grumpy) kirr@deco:~/src/tools/go/grumpy$ ./pystone
Traceback (most recent call last):
File "pystone.py", line 275, in <module>
main(loops)
File "pystone.py", line 65, in main
benchtime, stones = pystones(loops)
File "pystone.py", line 72, in pystones
return Proc0(loops)
File "pystone.py", line 93, in Proc0
starttime = clock()
File "pystone.py", line 79, in <module>
Array2Glob = map(lambda x: x[:], [Array1Glob]*51)
StopIteration
This looks strange as Array2Glob = map(lambda x: x[:], [Array1Glob]*51) is there in global context not inside some function but traceback shows it to be called from inside time.clock() (?).
Full source code for (a bit) adjusted pystone.py is here:
Hello up there. I've tried to run CPython's pystone with Grumpy but instead of regular output it just prints "StopIteration" without any traceback. To try to see what is going on I've edded explicit
try/traceback.print_exc()around main() and then it prints:This looks strange as
Array2Glob = map(lambda x: x[:], [Array1Glob]*51)is there in global context not inside some function but traceback shows it to be called from insidetime.clock()(?).Full source code for (a bit) adjusted pystone.py is here:
https://lab.nexedi.com/kirr/grumpy/blob/52625c82/pystone.py
Thanks beforehand,
Kirill