[pypy-dev] Questions about RPython

Alexander D. Sedov elec.lomy.ru at gmail.com
Thu Dec 17 13:48:42 CET 2009

В Чтв, 17/12/2009 в 20:26 +0800, Olli Wang пишет:
> 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?)
> 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.
Just use os.O_CREAT flag after existence check.

More information about the Pypy-dev mailing list