STINNER Victor <vstin...@python.org> added the comment:

> but it will break the code which uses TextIOWrapper with other file-like 
> objects whose write() method does not return the number of written bytes.

We can detect if write() doesn't return an integer and don't attempt to call 
write() in a loop (until all bytes are written) in this case.

----------

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

Reply via email to