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 serhiy.storchaka
Recipients ncoghlan, serhiy.storchaka
Date 2018-05-09.09:10:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On other hand, beginners are confused even by chained "==". There are regular reports about this on the tracker and questions on Python-related resources.

I have found the chained "in" is useful in the following case

    len(string) >= 2 and string[0] == string[-1] in ("'", '"')

for testing if the string is quoted with a single or double quotes.
Date User Action Args
2018-05-09 09:10:37serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan
2018-05-09 09:10:37serhiy.storchakasetmessageid: <>
2018-05-09 09:10:37serhiy.storchakalinkissue32055 messages
2018-05-09 09:10:37serhiy.storchakacreate