[Python-Dev] String concatenation (original) (raw)
Michael Foord fuzzyman at voidspace.org.uk
Sun Aug 3 20:03:12 CEST 2008
- Previous message: [Python-Dev] String concatenation
- Next message: [Python-Dev] String concatenation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
It can be a very useful feature.
See the rejected PEP 3126 for a discussion:
http://www.python.org/dev/peps/pep-3126/
Michael Foord
Regards, Stavros Korokithakis
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
-- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ http://www.theotherdelia.co.uk/ http://www.resolverhacks.net/
- Previous message: [Python-Dev] String concatenation
- Next message: [Python-Dev] String concatenation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]