Message241344
| 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 |
<1429290391.08.0.570578690761.issue23986@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|