newbie question

Kragen Sitaker kragen at pobox.com
Sat May 25 05:37:25 EDT 2002


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.




More information about the Python-list mailing list