newbie question

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed May 22 16:31:55 EDT 2002


On 22-May-2002 Michael Bauers wrote:
>       
> Why doesn't the following work?  How is 'stdin' different than objects
> returned from 'file()' ?
> 
> import sys
> x = sys.stdin.xreadlines()
> 

you do realize that xreadlines() only reads one line at a time, right?





More information about the Python-list mailing list