[Python-ideas] Create a StringBuilder class and use it everywhere
Larry Hastings
larry at hastings.org
Thu Aug 25 12:34:14 CEST 2011
On 08/25/2011 03:19 AM, M.-A. Lemburg wrote:
> k_bx wrote:
>> I'm perfectly ok with different implementation of StringBuilder, but the main idea and proposal here is to make it in standard library somehow and force (and promote) uses of it everywhere, maybe write some FAQ. So that when you see some new += code all you need it so go and fix that without worrying about complains :-D
> I guess adding something like this to string.py would be worthwhile
> exploring. It's a very common use case and the list-idiom doesn't
> read well in practice.
>
I think the right place to do this is inside Python itself. I proposed
something to do that several years ago, been meaning to revive it.
http://bugs.python.org/issue1569040
/larry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110825/d82fddf0/attachment.html>
More information about the Python-ideas
mailing list