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 jedwards
Recipients docs@python, jedwards, wim.glenn
Date 2015-04-17.17:06:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
What about:

 For the list and tuple types, ``x in y`` is true if and only if there exists an
-index *i* such that ``x == y[i]`` is true.
+index *i* such that either ``x == y[i]`` or ``x is y[i]`` is true.

Seems to address your issue, and match the semantics of the Python3 any() approach.
Date User Action Args
2015-04-17 17:06:31jedwardssetrecipients: + jedwards, docs@python, wim.glenn
2015-04-17 17:06:31jedwardssetmessageid: <>
2015-04-17 17:06:31jedwardslinkissue23986 messages
2015-04-17 17:06:31jedwardscreate