In article 3756d97505012806421b00fe0a@mail.gmail.com, Jan-Ole Esleben esleben@gmail.com wrote:
You can use them anywhere; they're like HERE documents in Perl.
print """first line second line third line"""
Etc.
Actually, Doc strings are just plain strings (you can use single-quoted strings too). They do not interfere with the code because they simply evaluate to themselves.
Exactly. I just wanted to add that python triple-quoted strings can use """ or ''' as the delimiter (just as python can use " or ' as the normal single-quoted string delimiter).
-- Russell