[Python-ideas] Implicit string literal concatenation considered harmful?
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun May 12 01:59:17 CEST 2013
Ian Cordasco wrote:
> But + is already a supported operation on strings and has been since
> at least python 2. It is already there and it doesn't require a new
> dunder method for concatenating with the Ellipsis object.
There would be no dunder method, because it's not a
run-time operation. It's a syntax for writing a string
literal that spans more than one line. Using it
between any two things that are not string literals
would be a syntax error.
--
Greg
More information about the Python-ideas
mailing list