[Cython] new cython fails to compile a.(key=hash)
Ondrej Certik
ondrej at certik.cz
Fri Mar 6 06:39:40 CET 2009
Hi,
the new cython in Debian fails to compile my old code:
$ cython sympy_pyx.pyx
Error converting Pyrex file to C:
------------------------------------------------------------
...
# this is faster:
cdef list a
a = list(self._args)
#a.sort(key=hash)
a.sort(None, hash)
^
------------------------------------------------------------
/home/ondra/repos/sympyx/sympy_pyx.pyx:330:14: Call with wrong number
of arguments (expected 1, got 3)
Error converting Pyrex file to C:
But it should work. Any ideas? Originally, I used the commented out
thing before and now it also doesn't work:
$ cython sympy_pyx.pyx
Error converting Pyrex file to C:
------------------------------------------------------------
...
#h = hash(self._args_set)
# this is faster:
cdef list a
a = list(self._args)
a.sort(key=hash)
^
------------------------------------------------------------
/home/ondra/repos/sympyx/sympy_pyx.pyx:329:9: Cannot convert 'int
(object) except -1' to Python object
Error converting Pyrex file to C:
Any ideas? Is this supposed to work?
Ondrej
More information about the Cython-dev
mailing list