Michael Bauers <MichaelB at firstlogic.com> writes: > Why doesn't the following work? > > import sys > x = sys.stdin.xreadlines() It works for me. What behavior do you get? > How is 'stdin' different than objects returned from 'file()' ? It isn't.