Speed of string += string

Courageous jkraska at san.rr.com
Sat Apr 12 22:28:48 EDT 2003


>people, this particular trap comes as a surprise (it did to me the
>first time I met it [which wasn't in Python, but in a C++ library

Ah, but I wasn't so intelligent. I knew all about immutability,
encountered it before, and still wrote a bunch of code that did
aggressive string concatentation. Thankfully, Python's profiler is
so easy to use. :-)

C//





More information about the Python-list mailing list