osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python 3.2 has some deadly infection


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