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 lopgok
Recipients benjamin.peterson, georg.brandl, lopgok
Date 2008-12-07.15:48:59
SpamBayes Score 0.0005625333
Marked as misclassified No
Message-id <1228664941.47.0.459984387954.issue4571@psf.upfronthosting.co.za>
In-reply-to
Content
I don't consider sys.stdout.buffer.write(b'abc')
to be an acceptable solution. There are many programs that need
to produce binary output with standard output. Consider uudecode
and similar programs.

There needs to be a standard, portable, documented way to put stdout
into binary mode in order to write binary output. For example,
all the flavors of the print command need to be able to send binary
data to standard output.

I don't have a problem changing open statements to support binary
file i/o, but I do have a problem changing every print or write statement
in order to support binary file i/o.
History
Date User Action Args
2008-12-07 15:49:01lopgoksetrecipients: + lopgok, georg.brandl, benjamin.peterson
2008-12-07 15:49:01lopgoksetmessageid: <1228664941.47.0.459984387954.issue4571@psf.upfronthosting.co.za>
2008-12-07 15:49:00lopgoklinkissue4571 messages
2008-12-07 15:48:59lopgokcreate