jeff deifik <[EMAIL PROTECTED]> added the comment: 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. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4571> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com