Steve Dower <steve.do...@python.org> added the comment:

I'd rather keep encoding incrementally, and reduce the length of each attempt 
until the last UTF-8 character does not have its top bit set (i.e. is the final 
character in a multi-byte sequence).

Otherwise the people who like to print >2GB worth of data to the console will 
complain about the memory error :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37871>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to