This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients andreas-zeller, eryksun
Date 2021-01-09.19:20:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610220054.59.0.610345767106.issue42876@roundup.psfhosted.org>
In-reply-to
Content
> assert '''"""''' == '""""'  # Fails

The left-hand side is a triple-quote string literal [1][2] that contains 3 double-quote characters. The right-hand side is a single-quote string literal that contains 4 double-quote characters. Use the interactive shell to check the values. For example:

    >>> list('''"""''')
    ['"', '"', '"']

    >>> list('""""')
    ['"', '"', '"', '"']

If you have difficulty understanding an aspect of the language syntax, please ask a question in an appropriate forum such as python-tutor, python-list, or Stack Overflow.

---

[1] https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
[2] https://docs.python.org/3/tutorial/introduction.html#strings
History
Date User Action Args
2021-01-09 19:20:54eryksunsetrecipients: + eryksun, andreas-zeller
2021-01-09 19:20:54eryksunsetmessageid: <1610220054.59.0.610345767106.issue42876@roundup.psfhosted.org>
2021-01-09 19:20:54eryksunlinkissue42876 messages
2021-01-09 19:20:54eryksuncreate