Showing content from http://mail.python.org/pipermail/python-dev/attachments/20090210/02d569fc/attachment.htm below:
<div class="gmail_quote">On Tue, Feb 10, 2009 at 11:16 AM, Steve Holden <span dir="ltr"><<a href="mailto:steve@holdenweb.com">steve@holdenweb.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That's true, but the same *could* be said about the existing<br>
optimizations for objects that define their own __contains__.<br>
</blockquote></div><br>No, because there isn't a __not_contains__, so you cannot define the inverse operation differently. "not a in b" and "a not in b" have exactly the same effects.<br><blockquote style="margin: 1.5em 0pt;">
--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4