[Python-ideas] Implicit String Concatenation

Collin Winter collinw at gmail.com
Wed Apr 11 17:01:54 CEST 2007

On 4/11/07, Georg Brandl <g.brandl at gmx.net> wrote:
> Eoghan Murray schrieb:
> > My proposal for Python3K is to allow string-concatenation via
> > juxtaposition between string-literals, string-variables and expressions
> > that evaluate to strings.
> > Juxtaposition has some precedence in Python (the example above) and also
> > in the awk programming language.
> No, please! The concatenation of string literals is done in the parser.
> Your proposal would move that to runtime and introduce a "whitespace operator".
> How would you spell that? How would you overload it? etc.

A single-width whitespace operator would just be confusing since PEP
3117 will be using zero-width spaces for the None typedef : )


More information about the Python-ideas mailing list