This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Oren Milman, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2017-09-28.16:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5626435.Qx5mLfW2dj@saraksh>
In-reply-to <>
> 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:41serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, Oren Milman
2017-09-28 16:44:41serhiy.storchakalinkissue31285 messages
2017-09-28 16:44:41serhiy.storchakacreate