Message241344
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:31 | jedwards | set | recipients:
+ jedwards, docs@python, wim.glenn |
2015-04-17 17:06:31 | jedwards | set | messageid: <1429290391.08.0.570578690761.issue23986@psf.upfronthosting.co.za> |
2015-04-17 17:06:31 | jedwards | link | issue23986 messages |
2015-04-17 17:06:31 | jedwards | create | |
|