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 vstinner
Recipients methane, mjacob, pitrou, serhiy.storchaka, vstinner
Date 2020-07-08.08:32:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594197144.59.0.966425999358.issue41221@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2020-07-08 08:32:24vstinnersetrecipients: + vstinner, pitrou, methane, serhiy.storchaka, mjacob
2020-07-08 08:32:24vstinnersetmessageid: <1594197144.59.0.966425999358.issue41221@roundup.psfhosted.org>
2020-07-08 08:32:24vstinnerlinkissue41221 messages
2020-07-08 08:32:24vstinnercreate