[Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines()

Raymond Hettinger python at rcn.com
Thu Feb 26 22:03:26 EST 2004


> > I had been led astray because I was experimenting with using
> > cStringIO.writelines() as a basis for implementing str.join() for
> > general iterables without creating an intermediate tuple.  Right
now,
> > ''.join(it) will unexpectedly consume much more memory than really
> > needed.

[Jeremy Fincher]
> This sounds like a cool idea, are you still going to implement it?


One way or another, I'll make str.join() smarter and faster than it is
now.  Which way proves to be better is still open.


Raymond




More information about the Python-Dev mailing list