Message241661
So something like:
For container types such as list, tuple, or collections.deque, the expression 'x in y' is equivalent to 'any(x is e or x == e for e in y)'. For container types such as set, frozenset, and dict, this equivalence expression is modified by the addition of 'if hash(x) == hash(e)'.
? |
|
Date |
User |
Action |
Args |
2015-04-20 15:29:23 | ethan.furman | set | recipients:
+ ethan.furman, georg.brandl, ezio.melotti, eric.araujo, r.david.murray, docs@python, jonrsharpe |
2015-04-20 15:29:23 | ethan.furman | set | messageid: <1429543763.14.0.847919882238.issue23987@psf.upfronthosting.co.za> |
2015-04-20 15:29:23 | ethan.furman | link | issue23987 messages |
2015-04-20 15:29:23 | ethan.furman | create | |
|