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 mcara
Recipients mcara
Date 2017-07-19.05:28:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500442117.99.0.958324013572.issue30965@psf.upfronthosting.co.za>
In-reply-to
Content
Unexpected behavior of operator "in" when checking if a list/tuple/etc. contains a value:
>>> 1 in [1] is True
False
>>> (1 in [1]) is True
True

Is this a bug? If not, please explain why first variant return False.
History
Date User Action Args
2017-07-19 05:28:38mcarasetrecipients: + mcara
2017-07-19 05:28:37mcarasetmessageid: <1500442117.99.0.958324013572.issue30965@psf.upfronthosting.co.za>
2017-07-19 05:28:37mcaralinkissue30965 messages
2017-07-19 05:28:37mcaracreate