On Aug 3, 2008, at 19:12, Stavros Korokithakis wrote:

Hmm, thanks, although I don't see why it was rejected, since it seems to me that by using the addition operator or triple-quoting all the use cases would become clearer and not significantly harder to write, while the (often silent) errors would not happen any more.

I use this feature all the time in preference to triple quote strings to allow the indenting structure to be preserved.

def I_like_this():
        s = ("a multi line\n"
               "that keeps the indent of the function")
        return

def I_do_not_like_this():
        s = '''a multi line
that break the indent of the function"
        return


Barry

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to