[Python-ideas] Implicit string literal concatenation considered harmful?

Jim Jewett jimjjewett at gmail.com
Thu May 16 23:44:50 CEST 2013


On Thu, May 16, 2013 at 1:26 PM, Bruce Leban <bruce at leapyear.org> wrote:

>... So what if the rule for trailing \ was changed to:
>
> The \ continuation character may be followed by white space and a comment.
> If a comment is present, there must be at least one whitespace character
> between the \ and the comment.

YES!!!  Even ignoring string concatenation, this would be a huge win.

Limiting implicit string concatenation to "same logical line" or even
"adjacent physical lines joined by a line-continuation '\'-character"
*might* be even better.

-jJ


More information about the Python-ideas mailing list