enabling universal newline

Peter Kleiweg pkleiweg at xs4all.nl
Fri Nov 2 23:22:53 CET 2012

In Python 3.1 and 3.2

At start-up, the value of sys.stdin.newlines is None, which 
means, universal newline should be enabled. But it isn't.

So I do this:

sys.stdin = io.TextIOWrapper(sys.stdin.detach(), newline=None)

Now, sys.stdin.newlines is still None, but universal newline is 

Why is this?

Peter Kleiweg

More information about the Python-list mailing list