OK, Stefan

In now realize that all the noise I generated was actually related to
the Python Language version Cython is targeting to parse, which is
Python 2. And then all is fine, "abc" have to (unless __future__ used)
a byte string, matching the semantics of Py2.X series.  The point that
the generated C sources can be compiled againt a Py3 runtime is just
an 'extension' ...

But when Cython can parse Python Language version 3, if the user pass
a  -3 or -py3 flag to cython (or by any other way), then and only
then, a string literal like "abc" is going to be unicode by default.

If the above scenario is the present and the future of Cython, I now
completelly agree with your directions, and please disregard all the
noise.


On 5/16/08, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>  Lisandro Dalcin wrote:
>  > in Python 2.6 "abc" and b"abc" both return a byte string
>  > 'str' type, and 'bytes' type is an alias for 'str' type.
>
>
> As I said before, that's fine with me.
>
>
>  Stefan
>
>  _______________________________________________
>  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