[Python-Dev] Fix Unicode-disabled build of Python 2.7 (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Thu Jun 26 01:28:35 CEST 2014
- Previous message: [Python-Dev] Fix Unicode-disabled build of Python 2.7
- Next message: [Python-Dev] Fix Unicode-disabled build of Python 2.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 26 Jun 2014 01:13, "Serhiy Storchaka" <storchaka at gmail.com> wrote:
25.06.14 16:29, Victor Stinner написав(ла):
2014-06-25 14:58 GMT+02:00 Serhiy Storchaka <storchaka at gmail.com>:
Other benefit: patches exposed several bugs in code (mainly errors in backporting from 3.x). Oh, interesting. Do you have examples of such bugs? In posixpath branches for unicode and str should be reversed. In multiprocessing .encode('utf-8') is applied on utf-8 encoded str (this is unicode string in Python 3). And there is similar error in at least one other place. Tests for bytearray actually test bytes, not bytearray. That is what I remember.
OK, that sounds like an excellent reason to keep the Unicode disabled builds functional, and make sure they stay that way with a buildbot: to help make sure we're not accidentally running afoul of the implicit interoperability between str and unicode when backporting fixes from Python 3.
Helping to ensure correct handling of str values makes this capability something of benefit to all Python 2 users, not just those that turn off the Unicode support. It also makes it a potentially useful testing tool when assessing str/unicode handling in general.
Regards, Nick.
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140626/0237e3f3/attachment.html>
- Previous message: [Python-Dev] Fix Unicode-disabled build of Python 2.7
- Next message: [Python-Dev] Fix Unicode-disabled build of Python 2.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]