[pypy-dev] Questions about RPython
benjamin at python.org
Thu Dec 17 13:48:47 CET 2009
2009/12/17 Olli Wang <olliwang at ollix.com>:
> Hi, I was trying to develop a tiny application using RPython and I have a
> few of questions. Obviously, RPython has the advantage of translating the
> code to various backends so we can get much better performance than Python
> scripts running on top of any Python implementation, so I was wondering, is
> it possible to rewrite the full Python's standard library using RPython so
> people can treat RPython as a general purpose programming language? (is that
> a good idea?)
We intend RPython to be a language for writing interpreters not as a
general purpose programming language.
> BTW, in my tiny experiment application. I want to create an empty file and
> write something there. Unfortunately, the open() function is not supported
> in RPython and the os.open() can't create a new file if not existed. So how
> do I `touch` a new file in RPython? Thanks.
You're probably not passing the right flags to os.open.
More information about the Pypy-dev