[pypy-svn] r37078 - pypy/dist/pypy/jit/tl/test

arigo at codespeak.net arigo at codespeak.net
Sat Jan 20 22:55:44 CET 2007


Author: arigo
Date: Sat Jan 20 22:55:42 2007
New Revision: 37078

Modified:
   pypy/dist/pypy/jit/tl/test/test_tl.py
Log:
Print the string representation of the factorial bytecode when run directly.
For passing as an argument to the testing_1 binary.


Modified: pypy/dist/pypy/jit/tl/test/test_tl.py
==============================================================================
--- pypy/dist/pypy/jit/tl/test/test_tl.py	(original)
+++ pypy/dist/pypy/jit/tl/test/test_tl.py	Sat Jan 20 22:55:42 2007
@@ -262,3 +262,7 @@
             POP
             RETURN
     '''
+
+if __name__ == '__main__':
+    code = compile(FACTORIAL_SOURCE)
+    print ','.join([str(ord(c)) for c in code])



More information about the Pypy-commit mailing list