Kudos on Rocco for getting EXEC_STMT to work! I had tried and given up when it was throwing some crazy exceptions. This prevented you from being able to use code.InteractiveConsole. This problem seems to be fixed now. The idea behind my frontend it to get inside the pypy environment as quickly as possible. Although interpreter\interactive.py is a good proof of concept, it really only runs a small percentage of the interpreter in pypy. This frontend simply instansiates and environment and runs "import code;code.InteractiveConsole();" This is being executed within pypy. A also did some funky stuff to allow pypy to exist outside of Cpython's pythonpath. The idea here is to isolate the pypy environment from Cpython as quickly as possible. Attached is pypython.py (for some reason I can't figure out how to attach to the issue tracker). To test, save it in your pypy directory.
From there 'pypython.py' will bring up the interactive console, and 'pypython script.py' will run a script.
-logistix
"logistix" <logistix@cathoderaymission.net> writes:
A also did some funky stuff to allow pypy to exist outside of Cpython's pythonpath. The idea here is to isolate the pypy environment from Cpython as quickly as possible.
Even for the trivial object space we badly need our own sys and builtins modules, for this sort of reason. Cheers, M. -- If you have too much free time and can't think of a better way to spend it than reading Slashdot, you need a hobby, a job, or both. -- http://www.cs.washington.edu/homes/klee/misc/slashdot.html#faq
participants (2)
-
logistix
-
Michael Hudson