This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients
Date 2004-03-01.09:35:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Currently, cStringIO.writelines() only accepts a 
sequence argument and it passes that argument 
internally to str.join() to construct a large temporary 
string before writing.

The patch allows the method to accept any iterable 
argument and for the lines to be written one at a time 
which cuts memory utilization in half.

The result is especially valuable when used with 
generators or itertools because the strings are 
constructed on the fly rather than all at once.
History
Date User Action Args
2007-08-23 15:32:34adminlinkissue907403 messages
2007-08-23 15:32:34admincreate