[Python-Dev] Usage of += on strings in loops in stdlib (original) (raw)

Serhiy Storchaka storchaka at gmail.com
Wed Feb 13 19:51:48 CET 2013


On 13.02.13 20:40, Christian Tismer wrote:

If += is anyway a bit slower than other ways, forget it. I would then maybe add a commend somewhere that says "avoiding '+=' because it is not reliable" or something.

+= is a fastest way (in any implementation) if you concatenates only two strings.



More information about the Python-Dev mailing list