| commit | 6ec099658ab49ed6d3c2861e437fe659e1c7037f | [log] [tgz] |
|---|---|---|
| author | Raymond Hettinger <python@rcn.com> | Mon Mar 08 18:17:31 2004 +0000 |
| committer | Raymond Hettinger <python@rcn.com> | Mon Mar 08 18:17:31 2004 +0000 |
| tree | 2a8f9f3e3192bba966382e4a473092d1f376f3f6 | |
| parent | 73360a3e61274ffcc4c9fc3d09746bd6603e92a5 [diff] |
SF patch #907403: Improvements to cStringIO.writelines() The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions.