Manuel Jacob <[email protected]> added the comment:
`io.TextIOWrapper.write()` returns the length of the passed string instead of
the actually written number of characters.
% python -u -c "import sys; print(sys.stdout.write('x'*4294967296),
file=sys.stderr)" | wc -c
4294967296
2147479552
So the possibility "users of `io.TextIOWrapper` call `write()` until all
characters have been written" would not be sufficient.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41221>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com