[pypy-dev] Pypy frontend

logistix logistix at cathoderaymission.net
Sun Apr 20 01:00:36 CEST 2003


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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pypython.py
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20030419/739f1c94/attachment.ksh>


More information about the Pypy-dev mailing list