[Python-Dev] Fix Unicode-disabled build of Python 2.7
Serhiy Storchaka
storchaka at gmail.com
Wed Jun 25 16:00:42 CEST 2014
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.
More information about the Python-Dev
mailing list