apostrophe or double quote?

skip at pobox.com skip at pobox.com
Wed Feb 8 12:57:00 EST 2006


Just to present a complete picture, not mentioned in this thread are
triple-quoted strings:

    'abc' == '''abc''' == "abc" == """abc"""

Triple-quoted strings are no different than regular strings, though they do
allow literal newlines to be embedded in the string.  Their presence is most
often detected in doc strings precisely for this reason.

Skip



More information about the Python-list mailing list