[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
- Previous message: [Python-Dev] Usage of += on strings in loops in stdlib
- Next message: [Python-Dev] Usage of += on strings in loops in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Usage of += on strings in loops in stdlib
- Next message: [Python-Dev] Usage of += on strings in loops in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]