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 msp, r.david.murray, vstinner
Date 2014-07-28.21:49:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I backported and adapted most Python 3 fixes related to the Windows binary mode for stdout/stderr used when Python is started with the -u command line option. See attached binary.patch.

My change to file.write() looks wrong because the function returns None and does not loop until all bytes are written.

By the way, string_write() doesn't check if fwrite(n) wrote less than n bytes or failed with an error.

See also the issue #21090 which improves error handling in the file object.
Date User Action Args
2014-07-28 21:49:42vstinnersetrecipients: + vstinner, r.david.murray, msp
2014-07-28 21:49:41vstinnersetmessageid: <>
2014-07-28 21:49:41vstinnerlinkissue21946 messages
2014-07-28 21:49:41vstinnercreate