Iterating through large file-like objects 1.1

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - Python License
CreatedCreated : Jun 6, 2007
Size downloadDownloads : 1
Program licensing
Thank you for voting...

This function provides a simple iterator for the ...

This function provides a simple_iterator for the lines of a file-like object. (It also provides a flag for removing/retaining trailing line. )
I ran into the problem a number of times that I wanted to read-in a very large file-like object (say a GB or two) line by line. This is a problem for any object that wants to read the entire "file" in at once, unless you have several GB of memory just begging to be used. . .
In Python 2. 3, while file objects now support this sort of single-line iteration, not all file-like objects do. For example, using the for-in construction with sys. stdin still causes sys. stdin to read in everything before the for-loop begins iteration. Using the iterfile function allows you to process sys. stdin iteratively, which may be important if you have a lot of information coming in on standard input.

Iterating through large file-like objects 1.1 scripting tags: iterator, file, object file, line, objects, sysstdin, filelike, iteration script, simple iterator. What is new in Iterating through large file-like objects 1.1 software script? - Unable to find Iterating through large file-like objects 1.1 news. What is improvements are expecting? Newly-made Iterating through large file-like objects 1.2 will be downloaded from here. You may download directly. Please write the reviews of the Iterating through large file-like objects. License limitations are unspecified.