[Python-ideas] Implicit String Concatenation

Terry Reedy tjreedy at udel.edu
Wed Apr 11 23:54:11 CEST 2007

"Adam Atlas" <adam at atlas.st> wrote in message 
news:BCDF57D3-8555-4230-8ABD-8419A41A8E1C at atlas.st...
| On 11 Apr 2007, at 16.15, Jim Jewett wrote:
| > I would support a proposal to remove the implicit concatenation
| > entirely.

Raymond H. is proposing this for Py3.

| I'd agree with that. The parser can probably just do the same
| optimization automatically if it gets [string literal] "+" [string
| literal]. (Or does it already?)

He says it does (not sure which version he meant).

| what I'm proposing is the following:
| x = 'foo
|     'bar
|     'baz'

-1 Looks ugly to me ;-)


More information about the Python-ideas mailing list