Permalink
Please sign in to comment.
Browse files
Fix an issue that made OPy's bytecode output nondeterministic.
The flow graph can be flattened correctly in many ways, but we want a consistent order. I used sorted(), and that works, but it should probably be made more efficient. - Add an 'opyc dis-md5' command to verify the results. It skips the timestamp in the .pyc file.
- Loading branch information...
Showing
with
102 additions
and 9 deletions.
- +3 −3 opy/compiler2/pyassem.py
- +47 −0 opy/determinism.sh
- +19 −0 opy/opy_main.py
- +33 −6 opy/smoke.sh
0 comments on commit
04fedae