[Cython] new cython fails to compile a.(key=hash)

Stefan Behnel stefan_ml at behnel.de
Fri Mar 6 09:31:17 CET 2009


Ondrej Certik wrote:
> 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)

This is a known bug that apparently wasn't fixed in the 0.10 releases. The
(trivial) fix is here:

http://hg.cython.org/cython-devel/rev/4bbc6166052f

Stefan



More information about the Cython-dev mailing list