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 pitrou
Recipients loewis, pitrou, vstinner
Date 2011-10-12.16:06:52
SpamBayes Score 1.464757e-05
Marked as misclassified No
Message-id <1318435613.15.0.463264753559.issue13149@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, these are things I've been wondering about. The use-case for an append-only StringIO is obviously overlapping with the use-case for using ''.join(). However, the implementation I'm proposing is better than ''.join() when writing very small strings, since there's a periodic consolidation.

> As a special case, you may consider that .truncate(0) doesn't really
> need to realize the buffer first.

True. Also, seek(0) then read() could use the same optimization.
History
Date User Action Args
2011-10-12 16:06:53pitrousetrecipients: + pitrou, loewis, vstinner
2011-10-12 16:06:53pitrousetmessageid: <1318435613.15.0.463264753559.issue13149@psf.upfronthosting.co.za>
2011-10-12 16:06:52pitroulinkissue13149 messages
2011-10-12 16:06:52pitroucreate