Lisandro Dalcin wrote:
> Perhaps I was not clear enough, but the mapping in my mind is just the
> mapping you proposed.

Oh well, ok. :)

> In the Python side, 'str' sould be the the type Python uses for
> attributes and names. In the C side, that would be 'PyString_Type'.
> Of course, Cython has to #define  PyString_Type to PyUnicode_Type for
> Py3 (currently, PyString_Type is #define'd as PyBytes_Type for Py3).

The proposal could cause confusion. Python 3.0's PyBytes type is a 
slightly modified and renamed version of Python 2.0's PyString type. A 
few months ago the PyBytes_* functions were still called PyString_* 
until I renamed them.

Does Cython provide aliases for PyBytes -> PyString for all versions of 
Python 2.x? It would be helpful for Python 3.0 compatible code.

[...]
> What to you think, Christian? Do my later comments make sense for you?

I see your problem ... I've to think about the implications more carefully.

Christian

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

Reply via email to