[issue11990] redirected output - stdout writes newline as \n in windows
James Hutchison
report at bugs.python.org
Mon May 16 20:48:56 CEST 2011
James Hutchison <jamesghutchison at gmail.com> added the comment:
I would like to add in windows, "input" now adds a \r at the end which wasn't in 3.1. It doesn't do it in idle. This is using just the regular console window that opens up when you double click. I'm guessing this is related to the issue I saw earlier:
code:
from time import sleep
item = input("Input something\n");
print("%s %i" % (item, len(item)));
sleep(15);
in Idle:
Input something
something
something 9
in console window:
Input something
something
10ething
ouch
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11990>
_______________________________________
More information about the Python-bugs-list
mailing list