17 Apr
2015
17 Apr
'15
5:06 p.m.
James Edwards added the comment: 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. ---------- keywords: +patch nosy: +jedwards Added file: http://bugs.python.org/file39087/issue23986.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23986> _______________________________________