]> granicus.if.org Git - python/commit
SF patch #907403: Improvements to cStringIO.writelines()
authorRaymond Hettinger <python@rcn.com>
Mon, 8 Mar 2004 18:22:35 +0000 (18:22 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 8 Mar 2004 18:22:35 +0000 (18:22 +0000)
commit3e47f65e28e0350ebf5de83242fdc4099f69a60d
tree70ec1f984501795e64e7f04b255376b0f045c8e7
parent6ec099658ab49ed6d3c2861e437fe659e1c7037f
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.
Misc/NEWS