[Python-ideas] Implicit string literal concatenation considered harmful?
Georg Brandl
g.brandl at gmx.net
Sat May 11 07:24:39 CEST 2013
Am 11.05.2013 01:43, schrieb Philip Jenvey:
>
> 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.
-1 here. I use it a lot too, and find it very convenient, and while I could
live with the change, I think it should have been made together with the lot
of other syntax changes going to Python 3.
Georg
More information about the Python-ideas
mailing list