Python 3.2 has some deadly infection

Marko Rauhamaa marko at pacujo.net
Thu Jun 5 04:05:18 EDT 2014


Chris Angelico <rosuav at gmail.com>:

> If, in Python, I say print("Hello, world!"), I expect that to produce
> a line of text on the screen, without my code having to encode that to
> bytes, figure out what sort of newline to add, etc, etc.

That example in no way represents the typical Python program (if there
is one).

> Only an extreme few Unix programs actually manipulate binary standard
> streams

That's quite an assumption to make.

> we should have print() and input() "naturally just work" with Unicode

No problem there. I couldn't imagine using either function for anything
serious.


Marko



More information about the Python-list mailing list