[pypy-svn] r9193 - pypy/dist/goal
sanxiyn at codespeak.net
sanxiyn at codespeak.net
Sun Feb 13 18:05:09 CET 2005
Author: sanxiyn
Date: Sun Feb 13 18:05:09 2005
New Revision: 9193
Modified:
pypy/dist/goal/compiler-hack.py
Log:
Now this works without any hacks.
Modified: pypy/dist/goal/compiler-hack.py
==============================================================================
--- pypy/dist/goal/compiler-hack.py (original)
+++ pypy/dist/goal/compiler-hack.py Sun Feb 13 18:05:09 2005
@@ -1,13 +1,6 @@
-# Hacks to import compiler package
-# As of revision 3865
-
-import os
-os.error = OSError
-import __builtin__
-__builtin__.reload = lambda x: x
-import ihooks
-ihooks.install()
import compiler
c = compiler.compile('a=1', '', 'exec')
import dis
dis.dis(c)
+exec c
+print a
More information about the Pypy-commit
mailing list