buffering choking sys.stdin.readlines() ?

cshirky cshirky at gmail.com
Mon May 12 14:30:52 EDT 2008


> readlines() reads all of the file into the memory. Try using xreadlines,
> the generator-version, instead. And I'm not 100% sure, but I *think* doing
>
> for line in sys.stdin

both work -- many thanks.

-clay



More information about the Python-list mailing list