[Python-Dev] String concatenation (original) (raw)
Tres Seaver tseaver at palladion.com
Sun Aug 3 20:04:01 CEST 2008
- Previous message: [Python-Dev] String concatenation
- Next message: [Python-Dev] String concatenation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Stavros Korokithakis wrote:
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?
- -1. The feature exists to allow adherence to PEP-8, "Limit all lines to a maximum of 79 characters.", without requiring runtime concatenation costs. I use it frequently when assembling and testing message strings, for instance.
Tres. - --
Tres Seaver +1 540-429-0999 tseaver at palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIlfMR+gerLs4ltQ4RAjc/AJ9QiO4EWMfamHwyRLaZ+cowu8bT9gCbB+/Y 979rSOIrbRs8lYW3T8Kv6WE= =NSdL -----END PGP SIGNATURE-----
- Previous message: [Python-Dev] String concatenation
- Next message: [Python-Dev] String concatenation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]