Triple-quoted strings hath not the Python-nature

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Oct 26 19:11:34 EDT 2008


In message <010fec39$0$20657$c3e8da3 at news.astraweb.com>, Steven D'Aprano
wrote:

> I disagree. Triple-quoted strings are exactly the same as other strings:
> they capture *exactly* what you put in them ...

But that conflicts with the use of whitespace for indentation rules. Other
languages are freeform, and have strings that include whitespace as
significant.

In short, if whitespace is significant outside a string, then it shouldn't
be significant inside. And vice versa.



More information about the Python-list mailing list