On Sun, Oct 11, 2009 at 4:52 AM, Stefan Behnel <[email protected]> wrote:
>
> I just added a section to the CEP about encoding issues. Any comments on
> the solution (last paragraph) below?
>
> The only obvious way to prevent both confusion and runtime errors is to
> disallow unprefixed strings that cannot be decoded under the current source
> code encoding. Following Python 2 string semantics, Cython will therefore
> read {{{str}}} literals as byte strings, and then try to decode them using
> the source code encoding at compile time. All strings that fail to decode
> will be rejected.
> """

Definitely +1.


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