[Python-apps-team] Bug#464751: cython: cannot use the 'unicode' built-in function

Ondrej Certik ondrej at certik.cz
Fri Feb 8 20:16:45 UTC 2008


Hi Jakub,

> $ cat buggy.pyx
> x = basestring # OK
> x = str # OK
> x = unicode # fails
>
>
> $ cython buggy.pyx
>
> Error converting Pyrex file to C:
> ------------------------------------------------------------
> ...
> x = basestring # OK
> x = str # OK
> x = unicode # fails
>                    ^
> ------------------------------------------------------------
>
> /tmp/buggy.pyx:3:19: Cannot convert 'object (object)' to Python object

Thanks very much for the bug report! I reported it upstream:

http://codespeak.net/pipermail/cython-dev/2008-February/000038.html

Feel free to follow it in there or help upstream fixing it.

Ondrej





More information about the Python-apps-team mailing list