Everything you did not want to know about Unicode in Python 3

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue May 13 20:10:59 EDT 2014


On Tue, 13 May 2014 10:08:42 -0600, Ian Kelly wrote:

> Because Python 3 presents stdin and stdout as text streams however, it
> makes them more difficult to use with binary data, which is why Armin
> sets up all that extra code to make sure his file objects are binary.

What surprises me is how hard that is. Surely there's a simpler way to 
open stdin and stdout in binary mode? If not, there ought to be.




-- 
Steven D'Aprano
http://import-that.dreamwidth.org/



More information about the Python-list mailing list