[Python-Dev] Unicode exception indexing

"Martin v. Löwis" martin at v.loewis.de
Thu Nov 3 22:43:30 CET 2011

Am 03.11.2011 22:19, schrieb Terry Reedy:
> On 11/3/2011 3:16 PM, Victor Stinner wrote:
>> Le jeudi 3 novembre 2011 18:14:42, martin at v.loewis.de a écrit :
>>> There is a backwards compatibility issue with PEP 393 and Unicode
>>> exceptions: the start and end indices: are they Py_UNICODE indices, or
>>> code point indices?
> I had the impression that we were abolishing the wide versus narrow
> build difference and that this issue would disappear. I must have missed
> something.

Most certainly. The Py_UNICODE type continues to exist for backwards
compatibility. It is now always a typedef for wchar_t, which makes it
a 16-bit type on Windows.


More information about the Python-Dev mailing list