Permalink
Please sign in to comment.
Browse files
Fix a bug where CPython would execute code instead of byterun.
Functions from imported modules are created through the host __import__ rather than MAKE_FUNCTION, so they were get executed by the HOST CPython interpreter. This can be seen with the speed.py/speed_main.py scripts in smoke.sh. See comments in pyvm2.py for details on the fix. Also: - Misc cleanup and comments. - This reveals some OSH unit tests failing under byterun, which need to be fixed.
- Loading branch information...
Showing
with
111 additions
and 31 deletions.
- +1 −1 opy/byterun/pyobj.py
- +34 −11 opy/byterun/pyvm2.py
- +13 −10 opy/opy_main.py
- +63 −9 opy/smoke.sh
0 comments on commit
62cd492