Iterating through large file-like objects script download - Iterating through large file-like objects Iterating through large file-like objects script

Iterating through large file-like objects script 1.1 Publisher Review:


Iterating through large file-like objects Iterating through large file-like objects script provides a simple iterator for the lines of a file-like object.
Iterating through large file-like objects script provides a simple iterator for the lines of a file-like object. This function provides a simple iterator for the lines of a file-like object. (It also provides a flag for removing/retaining trailing newlines.) 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 script 1.1 details and screenshot


Screenshot:

Rating: 7 Votes:
Rating for Iterating through large file-like objects script: 7 from  votes
Rate this software:


Scan computer and update all your drivers before downloading.

Release date: 0000-00-00
Last update: 2009-10-13
Platform: Windows / Linux / Mac OS / BSD / Solaris
Language: Python
Price:Other Free / Open So $
Company: ActiveState
Info url: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/336012




Download Iterating through large file-like objects script 1.1
RECOMMENDED TOOLS


Related tags:

Related downloads

Sending binary data to stdout script 1.4     
Sending binary data to stdout Sending binary data to stdout script allows you to send bina
Price: Other Free / Open So$, Rating: 9, Downloads: 0
html2ps/html2pdf script 2.0.23     
html2ps/html2pdf html2ps/html2pdf is a PHP application that allows you to perform the conv
Price: GPL$, Rating: 9, Downloads: 0
XUpload script      
XUpload XUpload is an advanced upload progress bar indicator for web based file uploads wr
Price: Freeware$, Rating: 6, Downloads: 0
Sciretech Multimedia Manager script 2.0.0     
Sciretech Multimedia Manager Sciretech Multimedia Manager is a professional file manager w
Price: Free Trial$, Rating: 10, Downloads: 0
Count script      
Count Count code helps you to count the number of digits, white space and others in a give
Price: Freeware$, Rating: 9, Downloads: 0
AutoUpgrade script 1.0     
AutoUpgrade AutoUpgrade detects if there is a new program version on any internet server.
Price: Commercial License ($, Rating: 9, Downloads: 0
SidStudios' Directory Lister script 1.0     
SidStudios' Directory Lister SidStudios' Directory Lister is a basic PHP script which allo
Price: Freeware$, Rating: 6, Downloads: 0
CSV to HTML Table Generator script      
CSV to HTML Table Generator CSV to HTML Table Generator converts CSV(comma separated value
Price: Freeware$, Rating: 6, Downloads: 0