Jp Calderone exarkun at
Wed Apr 2 23:36:48 CEST 2003

On Wed, Apr 02, 2003 at 09:52:59PM +0200, Carsten Gaebler wrote:
> Roy Smith wrote:
> >Multi-line comments are evil
> >
> >The first time you spend a half-hour trying to understand a block of
> >ugly code and finally get to the end and find a "*/", you'll
> >understand why they're evil.
> ACK.
> But multi-line strings are evil, too. At least when they occur in an 
> indented block and leading whitespace is not allowed in the string 
> your're building (e.g. in an HTTP request or something). That looks 
> quite awful. :-)

  Agreed, which is what literal concatenation is for

    c = ("Here is the first line\n"
         "Here is another line\n"
         "Last line, here I am.\n")


Lowery's Law:
        If it jams -- force it.  If it breaks, it needed replacing anyway.
 up 13 days, 18:00, 7 users, load average: 0.10, 0.09, 0.08

More information about the Python-list mailing list