[Python-Dev] String concatenation

Stavros Korokithakis stavros at korokithakis.net
Sun Aug 3 19:44:02 CEST 2008


Hello,
is concatenation of adjacent strings a useful feature? So far the only 
use case I've seen is causing me endless hours of debugging when I 
forget the comma in a tuple of strings, like so:

("first",
  "second"
  "third")

Which then becomes a tuple of two items, instead of three. It would have 
been much better if it produced an error. Is there any good reason that 
this feature exists, or would it be better if it were removed?

Regards,
Stavros Korokithakis


More information about the Python-Dev mailing list