On Tue, Nov 24, 2009 at 5:32 PM, Stefan Behnel <[email protected]> wrote:
>
> Joachim Saul, 24.11.2009 20:59:
>> cdef extern from "Python.h":
>>      ctypedef class __builtin__.str  [object PyStringObject]:
>>          pass
>
> Remove the above and use the 'bytes' type in the rest of your code instead.
> 'str', 'unicode' and 'bytes' are builtin types in Cython.
>
> Stefan
>

Anyway, any good reason for such code to fail in Cython? Should we
support such declarations of builtin types? I think Cython should be
able to compile as much Pyrex code as possible.


> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to