[Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines() (original) (raw)
Raymond Hettinger python at rcn.com
Thu Feb 26 22:03:26 EST 2004
- Previous message: [Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines()
- Next message: [Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message: [Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines()
- Next message: [Python-Dev] Re: Optional separatorargument for file.writelines()and StringIO.writelines()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]