[Python-Dev] PyUnicode_Resize (original) (raw)
Amaury Forgeot d'Arc amauryfa at gmail.com
Tue Nov 22 14:33:18 CET 2011
- Previous message: [Python-Dev] PyUnicode_Resize
- Next message: [Python-Dev] PyUnicode_Resize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2011/11/22 Victor Stinner <victor.stinner at haypocalc.com>
Hi,
In Python 3.2, PyUnicodeResize() expects a number of PyUNICODE units, whereas Python 3.3 expects a number of characters. It is tricky to convert a number of PyUNICODE units to a number of characters, so it is diffcult to provide a backward compatibility PyUnicodeResize() function taking a number of PyUNICODE units in Python 3.3. Should we rename PyUnicodeResize() in Python 3.3 to avoid surprising bugs? The issue only concerns Windows with non-BMP characters, so a very rare use case. The easiest solution is to do nothing in Python 3.3: the API changed, but it doesn't really matter. Developers just have to be careful on this particular issue (which is not well documented today).
+1. A note in the "Porting C code" section of whatsnew/3.3 should be enough.
-- Amaury Forgeot d'Arc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20111122/6e7c5235/attachment.html>
- Previous message: [Python-Dev] PyUnicode_Resize
- Next message: [Python-Dev] PyUnicode_Resize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]