[pypy-dev] RPython I/O

Ben Mellor cumber at netspace.net.au
Tue Mar 17 10:03:42 CET 2009


Hi

Just wondering, what's the right way to do IO in an RPython program?

sys.stdin/sys.stdout don't work, neither does opening files using open(), and
raw_input doesn't work. All I can get is print. I can't find anything about
this in the docs, and I haven't been able to understand how the PyPy
interpreter is doing it from looking at the source code so far.

I've been playing around with using the PyPy framework to implement a small
interpreter, and this is currently blocking me from translating it.

-- Ben Mellor



More information about the Pypy-dev mailing list