[pypy-dev] Using PyPy as a compiler
hpk at trillke.net
Sun Feb 6 14:34:43 CET 2005
On Sun, Feb 06, 2005 at 05:31 -0800, Hart's Antler wrote:
> Hi Holger,
> I tried pyrexc in pypy/tool but i get the same error as with the normal pyrexc:
> bash-2.05b# dist-pypy/pypy/tool/pyrexc test.pyx
> /root/imp/test.pyx:5:17: Declarator should be empty
> /root/imp/test.pyx:5:17: Expected '>'
> The pyrex generated code looks like this:
> def hi():
> return hi__2ad67a3c()
> cdef object hi__2ad67a3c():
> # untyped variables: v0 v13 v21 v3 v7
> v3 = <Function sys_stdout>()
> v7 = <Function print_item_to>('hello world', v3)
> v13 = <Function sys_stdout>()
> v21 = <Function print_newline_to>(v13)
> v0 = None
> return v0
> which was generated from a function that looks like this:
> def hi(): return 'hello world'
You don't happen to translate a print statement somewhere, do you?
More information about the Pypy-dev