Re: [Python-Dev] PyUnicode_Resize

2011-11-23 Thread Martin v. Löwis
> In Python 3.2, PyUnicode_Resize() expects a number of Py_UNICODE units, > whereas Python 3.3 expects a number of characters. Is that really the case? If the string is not ready (i.e. the kind is WCHAR_KIND), then it does count Py_UNICODE units, no? Callers are supposed to call PyUnicode_Resize

Re: [Python-Dev] PyUnicode_Resize

2011-11-22 Thread Amaury Forgeot d'Arc
2011/11/22 Victor Stinner > Hi, > > In Python 3.2, PyUnicode_Resize() expects a number of Py_UNICODE units, > whereas Python 3.3 expects a number of characters. > > It is tricky to convert a number of Py_UNICODE units to a number of > characters, so it is diffcult to provide a backward compatibil

[Python-Dev] PyUnicode_Resize

2011-11-21 Thread Victor Stinner
Hi, In Python 3.2, PyUnicode_Resize() expects a number of Py_UNICODE units, whereas Python 3.3 expects a number of characters. It is tricky to convert a number of Py_UNICODE units to a number of characters, so it is diffcult to provide a backward compatibility PyUnicode_Resize() function takin