[pypy-dev] Properties under RPython

Armin Rigo arigo at tunes.org
Thu May 26 15:46:19 CEST 2011


Hi Gabriel,

On Fri, May 20, 2011 at 9:36 PM, Gabriel Jacobo <gabomdq at gmail.com> wrote:
> I have a good chunk of python code that uses properties all around, and I
> wanted to see if I can run it through the pypy machinery and eventually come
> the other side with a javascript end product (via RPythonic). Do you have any
> suggestions as to best solve this situation? (Preprocessing the code somehow
> perhaps?)

Any random large chunk of Python code is not RPython at all.  You may
hit the issue of properties right now, but I can assure you that there
will be many other issues.  "Being RPython" is a property best
achieved by writing code from scratch, not by trying to convert
existing code.  It's a bit like trying to convert a Python program to
Java; it's painful, and usually better to just write the Java program
from scratch.


A bientôt,

Armin.


More information about the pypy-dev mailing list