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 garylitvin
Recipients garylitvin
Date 2021-02-07.04:40:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612672813.96.0.169918993587.issue43151@roundup.psfhosted.org>
In-reply-to
Content
>>> x = 'a'
>>> x is 'a'
True
>>> if x is 'a':
        print(x)

SyntaxError: "is" with a literal. Did you mean "=="?

How come?
History
Date User Action Args
2021-02-07 04:40:14garylitvinsetrecipients: + garylitvin
2021-02-07 04:40:13garylitvinsetmessageid: <1612672813.96.0.169918993587.issue43151@roundup.psfhosted.org>
2021-02-07 04:40:13garylitvinlinkissue43151 messages
2021-02-07 04:40:13garylitvincreate