assigning multi-line strings to variables
Gregory Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 29 06:40:46 EDT 2010
Lie Ryan wrote:
> No, the implicit concatenation is there because Python didn't always
> have triple quoted string. Nowadays it's an artifact and triple quoted
> string is much preferred.
I don't agree. I often use implicit concatenation when I'm
writing a format string that won't fit on one source line,
because it allows me to fit it into the surrounding indentation
structure without introducing unwanted spaces into the string.
Both tecnhiques have their places.
--
Greg
More information about the Python-list
mailing list