4 ms·
String concatenation is pretty fast nowadays with the + operator.
by myle 13y ago
String concatenation is pretty fast nowadays with the + operator.
- elbear 13y agoDo you have a source? Also, I would argue that concatenation with + is less readable than string formatting.
- NigelTufnel 13y agoI think that concatenation with + is okay when you're concatenating two strings. And CPython can optimize x = x + y or x += y calls. http://docs.python.org/2/library/stdtypes.html http://docs.python.org/2/library/stdtypes.html