Message303262
> In 2.7, PyUnicode_Splitlines() first does:
> string = PyUnicode_FromObject(string);
And it raises an exception if the string contains non-ASCII characters.
It is better to avoid str<->unicode convertion as long as possible. And when
do it for the output a warning, use "replace" or "backslashreplace" error
handlers or "latin1" decoder to avoid a failure. |
|
Date |
User |
Action |
Args |
2017-09-28 16:44:41 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, Oren Milman |
2017-09-28 16:44:41 | serhiy.storchaka | link | issue31285 messages |
2017-09-28 16:44:41 | serhiy.storchaka | create | |
|