That's neat! I did not know about __contains__.

In that case, I'm really just suggesting some additional implementations of 
__contains__ in builtin and standard lib classes.

PS: Sorry for the missing "return" in the __rin__ example.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/L6LYCJLAB4P4QDGNRUGLHHFFN7HX23ES/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to