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 mjacob
Recipients mjacob, vstinner
Date 2020-07-07.03:05:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594091132.11.0.406400960283.issue41221@roundup.psfhosted.org>
In-reply-to
Content
`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.
History
Date User Action Args
2020-07-07 03:05:32mjacobsetrecipients: + mjacob, vstinner
2020-07-07 03:05:32mjacobsetmessageid: <1594091132.11.0.406400960283.issue41221@roundup.psfhosted.org>
2020-07-07 03:05:32mjacoblinkissue41221 messages
2020-07-07 03:05:31mjacobcreate