Eclipse. , PyDev, . - Eclipse , . script Python 3.1.1, inputted .
Python , input() GNU readline, stdin (.. TTY , ), .readline() stdin . , readline \n, . : CR-LF LF-CR ( )!
, script, , :
import sys
from io import StringIO
for stdin in [sys.stdin, StringIO("test\r\ntest\r\n")]:
sys.stdin = stdin
print("readline returns this: " + repr(sys.stdin.readline()))
inputted = input("Enter in something: ")
print("inputted: " + repr(inputted))
print("inputted is printed like this: --> {0} <--".format(inputted))
stdin ( Eclipse), stdin, test\r\ntest\r\n.
script Eclipse - . : Enter Eclipse CR-LF ( "\ r\n" ). "\ r" Eclipse .
, Windows : input() , ( ) GNU. stdin StringIO("test\r\n") input() "test\r", Eclipse ( ).
, ... , , - Eclipse.