[Python-ideas] Implicit string literal concatenation considered harmful?
Philip Jenvey
pjenvey at underboss.org
Sat May 11 01:43:43 CEST 2013
On May 10, 2013, at 1:09 PM, Michael Foord wrote:
> On 10 May 2013 20:16, Antoine Pitrou <solipsis at pitrou.net> wrote:
>
> I'm rather -1. It's quite convenient and I don't want to add some '+'
> signs everywhere I use it. I'm sure many people also have long string
> literals out there and will have to endure the pain of a dull task to
> "fix" their code.
>
> However, in your case, foo('a' 'b') could raise a SyntaxWarning, since
> the "continuation" is on the same line.
>
> I'm with Antoine. I love using implicit concatenation for splitting long literals across multiple lines.
Strongly -1 on this proposal, I also use this quite often.
--
Philip Jenvey
More information about the Python-ideas
mailing list