David Mertz, Ph.D. writes: > These are all far too easy to do with comprehensions to merit new methods > or stdlib functions.
+1 > E.g., we might provide additional set-like operators for dicts. > >>> m - {'a'} # Would rightval be a set or dict though?! > >>> m & {'a', 'b'} # Same question, but set feels better, I think Why not "either"? Of course if you allow dicts, the question in both cases becomes whether the presence test is on keys or items. I think keys would be more frequently useful. Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/B5JREJ6C3QBF6WMKG3FW6YYUDPFGGH46/ Code of Conduct: http://python.org/psf/codeofconduct/