Hi, Why are you trying to do this? The translator doesn't handle random Python, only RPython.
Alex On Sun, Feb 24, 2013 at 8:48 AM, Ghitulete Razvan < razvan.ghitul...@gmail.com> wrote: > Hi, > > I've been trying for some time now to translate python code into C. After > playing around with the pypy interactive translator shell and worked just > fine. But the I tried to translate the pypy benchmarks from > speed.pypy.orginto C code, but I seem to be running into all kinds of trouble. > > So far I've tried with bm_ai.py which seems to fail because it uses > closures(or so i'm told by the translator), and bm_threading.py seems to > fail while processing threading.py. Is there something I'm doing wrong? > > P.S.: I'm simply running the translator.py script with -s option on > slightly modified versions of the above mentioned files(adding an entry > point). > > -- > Sincerely, > Razvan Ghitulete > Universitatea Politehnica Bucuresti > > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev > > -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev