P
Peter Kleiweg
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
enabled.
Why is this?
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
enabled.
Why is this?