Explain the difference between these two triple-quoted strings:

Here is a triple-quoted string containing spaces and a triple-quote:

py> """ \""" """
' """ '


But remove the spaces, and two of the quotation marks disappear:

py> """\""""""
'"'


If nobody gets the answer, I shall reveal all later.

(Hint: it is not a bug.)




-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to