On Sat, Oct 17, 2009 at 6:22 AM, Stefan Behnel <[email protected]> wrote:
>
>    cdef char* s = 'x'
>    print s == 'x'
>

Nice corner case...

>
> What is this code even supposed to mean?
>

I have no (clear) idea... I mean, it is really ambiguous, right?

> It currently prints 'True', but that's only obvious when you know some
> magic internals about Cython's string handling.
>

Indeed.

BTW... So this would be 'True' even in Python 3, right?



-- 
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