[Python-ideas] Implicit String Concatenation

Georg Brandl g.brandl at gmx.net
Wed Apr 11 20:11:51 CEST 2007

Eoghan Murray schrieb:
> Hi guys,
> Thanks for your replies:
>     On 4/11/07, Georg Brandl < g.brandl at gmx.net
>     <mailto:g.brandl at gmx.net>> wrote:
>     [snip]
>      No, please! The concatenation of string literals is done in the parser.
>      Your proposal would move that to runtime [snip...]
>  An implementation detail?

A rather involved "detail".

>      [...snip] and introduce a "whitespace operator".
>      How would you spell that? How would you overload it? etc.
> This is exactly what I'm proposing.  You could spell it __juxta__  short 
> for juxtaposition or __concat__, and overload it as usual :-)
>     A single-width whitespace operator would just be confusing since PEP
>     3117 will be using zero-width spaces for the None typedef : )
> 3117 looks cool, but it is in draft stages so needn't factor.

This is a joke, isn't it? You're a bit late...


Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

More information about the Python-ideas mailing list